{
  "_id": "6adb44f709e55c8400208baf",
  "Package": "etm",
  "Type": "Package",
  "Title": "Empirical Transition Matrix",
  "Version": "1.1.2",
  "Authors@R": "c(person(\"Arthur\", \"Allignol\", role = \"aut\",\nemail = \"arthur.allignol@gmail.com\"),\nperson(\"Mark\", \"Clements\", role = c(\"cre\",\"aut\"),\nemail = \"mark.clements@ki.se\"))",
  "Description": "The etm (empirical transition matrix) package permits to\nestimate the matrix of transition probabilities for any\ntime-inhomogeneous multi-state model with finite state space\nusing the Aalen-Johansen estimator. Functions for data\npreparation and for displaying are also included (Allignol et\nal., 2011 <doi:10.18637/jss.v038.i04>). Functionals of the\nAalen-Johansen estimator, e.g., excess length-of-stay in an\nintermediate state, can also be computed (Allignol et al. 2011\n<doi:10.1007/s00180-010-0200-x>).",
  "License": "MIT + file LICENSE",
  "NeedsCompilation": "yes",
  "Repository": "https://mclements.r-universe.dev",
  "Date/Publication": "2025-04-12 08:09:43 UTC",
  "RemoteUrl": "https://github.com/mclements/etm",
  "RemoteRef": "HEAD",
  "RemoteSha": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
  "Packaged": {
    "Date": "2026-10-23 11:21:51 UTC",
    "User": "root"
  },
  "Author": "Arthur Allignol [aut],\nMark Clements [cre, aut]",
  "Maintainer": "Mark Clements <mark.clements@ki.se>",
  "_user": "mclements",
  "_type": "src",
  "_file": "etm_1.1.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/5c73fccf812ef18d5f390bd86216f42c8fe9b82b795901f8ca9f04a3a6477d93",
  "_filesize": 390757,
  "_sha256": "5c73fccf812ef18d5f390bd86216f42c8fe9b82b795901f8ca9f04a3a6477d93",
  "_expires": "2027-01-31T11:28:53.000Z",
  "_created": "2026-10-23T11:21:51.000Z",
  "_published": "2026-10-23T11:28:55.491Z",
  "_upstream": "https://github.com/mclements/etm",
  "_status": "success",
  "_maintainer": {
    "name": "Mark Clements",
    "email": "mark.clements@ki.se",
    "login": "mclements",
    "description": "",
    "uuid": 557321
  },
  "_jobs": [
    {
      "job": 120387487304,
      "time": 132,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12497464747"
    },
    {
      "job": 120387487295,
      "time": 158,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12498615631"
    },
    {
      "job": 120387487466,
      "time": 153,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12498695568"
    },
    {
      "job": 120387487347,
      "time": 192,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12498605757"
    },
    {
      "job": 120387487405,
      "time": 182,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12498695775"
    },
    {
      "job": 120387487414,
      "time": 291,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12498825323"
    },
    {
      "job": 120387487368,
      "time": 136,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12497798190"
    },
    {
      "job": 120387487532,
      "time": 330,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12498491472"
    },
    {
      "job": 120384663869,
      "time": 437,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12498126401"
    },
    {
      "job": 120387487248,
      "time": 145,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12498291795"
    },
    {
      "job": 120387487485,
      "time": 238,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12497129667"
    },
    {
      "job": 120387487384,
      "time": 189,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12498196612"
    },
    {
      "job": 120387487383,
      "time": 151,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12497967970"
    },
    {
      "job": 120387487736,
      "time": 253,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12498496238"
    },
    {
      "job": 120387487378,
      "time": 300,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12497374436"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539",
  "_commit": {
    "id": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
    "author": "Mark Clements <mark.clements@ki.se>",
    "committer": "Mark Clements <mark.clements@ki.se>",
    "message": "Rename clos.X to clos_X for non-exported functions\n\nThis includes clos.nocp, clos.cp, clos.cp_pure and clos.nocp_pure\n\nAs a TODO, we could export and document the pure functions.\n",
    "time": 1744445383
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.0.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "lattice",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.11.4",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "kmi",
      "role": "Suggests"
    },
    {
      "package": "geepack",
      "role": "Suggests"
    }
  ],
  "_owner": "mclements",
  "_selfowned": true,
  "_usedby": 16,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "mclements",
      "count": 24,
      "uuid": 557321
    },
    {
      "user": "aallignol",
      "count": 1,
      "uuid": 11571187
    }
  ],
  "_userbio": {
    "uuid": 557321,
    "type": "user",
    "name": "mclements",
    "followers": 69
  },
  "_downloads": {
    "count": 8956,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/etm"
  },
  "_mentions": 17,
  "_devurl": "https://github.com/mclements/etm",
  "_searchresults": 126,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/etm.html",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/mclements/etm",
  "_realowner": "mclements",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.3-2",
      "date": "2008-07-15"
    },
    {
      "version": "0.3-3",
      "date": "2008-10-30"
    },
    {
      "version": "0.3-5",
      "date": "2008-12-18"
    },
    {
      "version": "0.3-6",
      "date": "2009-02-01"
    },
    {
      "version": "0.3-7",
      "date": "2009-02-04"
    },
    {
      "version": "0.4-0",
      "date": "2009-04-14"
    },
    {
      "version": "0.4-3",
      "date": "2009-06-14"
    },
    {
      "version": "0.4-6",
      "date": "2009-09-03"
    },
    {
      "version": "0.4-7",
      "date": "2009-11-12"
    },
    {
      "version": "0.5",
      "date": "2010-11-04"
    },
    {
      "version": "0.5-1",
      "date": "2010-11-29"
    },
    {
      "version": "0.5-2",
      "date": "2011-01-03"
    },
    {
      "version": "0.5-4",
      "date": "2012-04-04"
    },
    {
      "version": "0.6",
      "date": "2013-12-18"
    },
    {
      "version": "0.6-1",
      "date": "2014-03-27"
    },
    {
      "version": "0.6-2",
      "date": "2014-12-09"
    },
    {
      "version": "0.6-2.1",
      "date": "2018-06-11"
    },
    {
      "version": "1.0.3",
      "date": "2018-07-04"
    },
    {
      "version": "1.0.4",
      "date": "2018-07-11"
    },
    {
      "version": "1.0.5",
      "date": "2019-05-28"
    },
    {
      "version": "1.0.5.1",
      "date": "2020-01-29"
    },
    {
      "version": "1.1",
      "date": "2020-04-20"
    },
    {
      "version": "1.1.1",
      "date": "2020-09-08"
    },
    {
      "version": "1.1.2",
      "date": "2025-04-12"
    }
  ],
  "_exports": [
    "clos",
    "closPseudo",
    "etm",
    "etmCIF",
    "etmprep",
    "prepare.los.data",
    "tra_comp",
    "tra_ill",
    "tra_ill_comp",
    "tra_surv",
    "trcov",
    "trprob"
  ],
  "_datasets": [
    {
      "name": "abortion",
      "title": "Pregnancies exposed to coumarin derivatives",
      "object": "abortion",
      "file": "abortion.txt.gz",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "entry",
        "exit",
        "group",
        "cause"
      ],
      "rows": 1186,
      "table": true,
      "tojson": true
    },
    {
      "name": "fourD",
      "title": "Placebo data from the 4D study",
      "object": "fourD",
      "file": "fourD.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "sex",
        "age",
        "medication",
        "status",
        "time",
        "treated"
      ],
      "rows": 636,
      "table": true,
      "tojson": true
    },
    {
      "name": "los.data",
      "title": "Length of hospital stay",
      "object": "los.data",
      "file": "los.data.csv.gz",
      "class": [
        "data.frame"
      ],
      "fields": [
        "adm.id",
        "j.01",
        "j.02",
        "j.03",
        "j.12",
        "j.13",
        "cens"
      ],
      "rows": 756,
      "table": true,
      "tojson": true
    },
    {
      "name": "sir.cont",
      "title": "Ventilation status in intensive care unit patients",
      "object": "sir.cont",
      "file": "sir.cont.txt.gz",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "from",
        "to",
        "time",
        "age",
        "sex"
      ],
      "rows": 1141,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "abortion",
      "title": "Pregnancies exposed to coumarin derivatives",
      "topics": [
        "abortion"
      ]
    },
    {
      "page": "clos",
      "title": "Change in Length of Stay",
      "topics": [
        "clos",
        "clos.etm",
        "clos.msfit"
      ]
    },
    {
      "page": "closPseudo",
      "title": "Pseudo Value Regression for the Extra Length-of-Stay",
      "topics": [
        "closPseudo"
      ]
    },
    {
      "page": "etm",
      "title": "Computation of the empirical transition matrix",
      "topics": [
        "etm",
        "etm.data.frame"
      ]
    },
    {
      "page": "etmCIF",
      "title": "Cumulative incidence functions of competing risks",
      "topics": [
        "etmCIF"
      ]
    },
    {
      "page": "etmprep",
      "title": "Data transformation function for using etm",
      "topics": [
        "etmprep"
      ]
    },
    {
      "page": "fourD",
      "title": "Placebo data from the 4D study",
      "topics": [
        "fourD"
      ]
    },
    {
      "page": "lines.etm",
      "title": "Lines method for 'etm' objects",
      "topics": [
        "lines.etm"
      ]
    },
    {
      "page": "los.data",
      "title": "Length of hospital stay",
      "topics": [
        "los.data"
      ]
    },
    {
      "page": "plot.clos.etm",
      "title": "Plot method for 'clos.etm' objects",
      "topics": [
        "plot.clos.etm"
      ]
    },
    {
      "page": "plot.etm",
      "title": "Plot method for an etm object",
      "topics": [
        "plot.etm"
      ]
    },
    {
      "page": "plot.etmCIF",
      "title": "Plot cumulative incidence functions",
      "topics": [
        "plot.etmCIF"
      ]
    },
    {
      "page": "prepare.los.data",
      "title": "Prepare the data for clos",
      "topics": [
        "prepare.los.data"
      ]
    },
    {
      "page": "print.clos.etm",
      "title": "Print function for 'clos.etm' objects",
      "topics": [
        "print.clos.etm"
      ]
    },
    {
      "page": "print.etm",
      "title": "Print method for object of class 'etm'",
      "topics": [
        "print.etm"
      ]
    },
    {
      "page": "print.etmCIF",
      "title": "Print function for 'cifETM' objects",
      "topics": [
        "print.etmCIF"
      ]
    },
    {
      "page": "sir.cont",
      "title": "Ventilation status in intensive care unit patients",
      "topics": [
        "sir.cont"
      ]
    },
    {
      "page": "summary.etm",
      "title": "Summary methods for an 'etm' object",
      "topics": [
        "print.summary.etm",
        "summary.etm"
      ]
    },
    {
      "page": "summary.etmCIF",
      "title": "Summary function for cifETM",
      "topics": [
        "print.summary.etmCIF",
        "summary.etmCIF"
      ]
    },
    {
      "page": "tra",
      "title": "Matrix of possible transitions",
      "topics": [
        "tra",
        "tra_comp",
        "tra_ill",
        "tra_ill_comp",
        "tra_surv"
      ]
    },
    {
      "page": "trprob_trcov",
      "title": "Function to extract transition probabilities and (co)variance",
      "topics": [
        "trcov",
        "trcov.etm",
        "trprob",
        "trprob.etm"
      ]
    },
    {
      "page": "xyplot.etm",
      "title": "xyplot method for object of class 'etm'",
      "topics": [
        "xyplot.etm"
      ]
    }
  ],
  "_readme": "https://github.com/mclements/etm/raw/HEAD/README.md",
  "_rundeps": [
    "data.table",
    "lattice",
    "Matrix",
    "Rcpp",
    "RcppArmadillo",
    "survival"
  ],
  "_sysdeps": [
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "etmCIF_tutorial.Rnw",
      "filename": "etmCIF_tutorial.pdf",
      "title": "Computing Cumulative Incidence Functions with the etmCIF Function",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2020-09-02 15:20:18",
      "modified": "2020-09-02 15:20:18",
      "commits": 1
    }
  ],
  "_score": 8.432695871736161,
  "_indexed": true,
  "_nocasepkg": "etm",
  "_universes": [
    "mclements"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-10-23T11:23:48.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/932e698b24f4eeffb1fdcf03640b48744381dec4d19f086386cf57ec96fc167c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-10-23T11:24:02.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/7b00870945730796da510fb8ac998baf969a44d3156ca4ef833c97dadec8b9ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-10-23T11:24:16.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/b9c221edc32e7a1cdda82be1d3ffaa664ed37a580fa75ca54215ff95047d2e49",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-10-23T11:24:39.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/bef070971e88ba36a76dfabee2c42731905e27f36c0998bc25517b4848999eeb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-10-23T11:25:29.000Z",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/32a3d0b6d767076dd4051c7ca0c963f4c9e590d7199d8a2c793efdc5d834c96d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-10-23T11:25:42.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/71556831cecefc14ab214897b4696e662f864ab2ce2dd2e20652571b1ae2a143",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-10-23T11:24:19.000Z",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/bf62ea935d45d8038b40916ab4f8dbf6e36d5f7d27abdb5628a8c0644f196d36",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-10-23T11:26:12.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/d2d0e45fce6af8fd0314d334e6a65821bca68a10a770df7d6eafcbd9ae729826",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.2",
      "date": "2026-10-23T11:24:39.000Z",
      "arch": "emscripten",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/654ed1ecf8dfa2634e84cfbf227fbeb0e39646688c2fa84038a4f785e8f38c39",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-10-23T11:25:10.000Z",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/42e2154bf5d5391f1bd78a83f953a31b17379e2eda773980c947e18a5f481f86",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-10-23T11:23:22.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/06f3a43797b06a71895b50e7c78d5a86cff7fe39d5201ae330ae33556c071c5f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-10-23T11:23:28.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/95cf1f147799e48f89f5953790cfac6b998224024e71281a395c1bd5c05b2204",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-10-23T11:25:26.000Z",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/beaa938602feaf040553ef4ba92a6011864567ce2ec3747317c3322d3b970a32",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-10-23T11:25:28.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/6137ed58ea58ba8e05e6e6adc14ebd1b94812f1388affb2a06d8b47bc24718e5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/39944746539"
    }
  ]
}