{
  "_id": "6ab3c01d3d719c1f84093693",
  "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-09-23 11:54:43 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/407ed35846bf12b85f6ef41a535ecd95a6af4a53e5d8faefff43932ea2d7b737",
  "_filesize": 392092,
  "_sha256": "407ed35846bf12b85f6ef41a535ecd95a6af4a53e5d8faefff43932ea2d7b737",
  "_expires": "2027-01-01T12:03:39.000Z",
  "_created": "2026-09-23T11:54:43.000Z",
  "_published": "2026-09-23T12:03:41.360Z",
  "_jobs": [
    {
      "job": 107168913865,
      "time": 170,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10748301263"
    },
    {
      "job": 107168913867,
      "time": 175,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10748435350"
    },
    {
      "job": 107168913839,
      "time": 184,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10747688330"
    },
    {
      "job": 107168914052,
      "time": 247,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10748545340"
    },
    {
      "job": 107168913877,
      "time": 142,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10748480106"
    },
    {
      "job": 107168913925,
      "time": 338,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10748670238"
    },
    {
      "job": 107168913878,
      "time": 134,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10748425302"
    },
    {
      "job": 107168913873,
      "time": 464,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10748665653"
    },
    {
      "job": 107167659268,
      "time": 234,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10748122650"
    },
    {
      "job": 107168913849,
      "time": 112,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10748410166"
    },
    {
      "job": 107168913898,
      "time": 252,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10748365807"
    },
    {
      "job": 107168913895,
      "time": 178,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10748078459"
    },
    {
      "job": 107168913951,
      "time": 123,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10748252698"
    },
    {
      "job": 107168914040,
      "time": 246,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10747563721"
    },
    {
      "job": 107168914139,
      "time": 149,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10747897414"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299",
  "_status": "success",
  "_upstream": "https://github.com/mclements/etm",
  "_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
  },
  "_maintainer": {
    "name": "Mark Clements",
    "email": "mark.clements@ki.se",
    "login": "mclements",
    "description": "",
    "uuid": 557321
  },
  "_distro": "resolute",
  "_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": 67
  },
  "_downloads": {
    "count": 7249,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/etm"
  },
  "_mentions": 17,
  "_devurl": "https://github.com/mclements/etm",
  "_searchresults": 127,
  "_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.344293062419798,
  "_indexed": true,
  "_nocasepkg": "etm",
  "_universes": [
    "mclements"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-09-23T11:57:22.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/b2b99eccfbc766366a0482e50064c40b788ce352f9183bf705347bc6f82c2992",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-09-23T11:57:15.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/0f916e800bbd01a4663006749c9c7dbc4f1e07409792e59d1c9cd0278d03707f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-09-23T11:57:44.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/8504cabd115f10165a00f3809a9fdf66f8a40d47299f5c82d01c091597e4d228",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-09-23T11:58:29.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/b79fac7982cd091760be7b4e3900bee39d27a3becdeea557e5ab2b81f5b03d02",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-09-23T11:56:53.000Z",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/7767e802fee9fd541b2cbdbb2d094a785091400f0a57096ea7575158f02470ba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-09-23T11:59:06.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/b86051dc6b0261fc426248609d56afe8e2164088e5a2c6f8394c4bb55cf4f6a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-09-23T11:56:51.000Z",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/055f0590748cfd73105ec11a655ee1f777b54b30b89c9bfcf8f977bb6e5e5579",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-09-23T11:59:25.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/d5e5ee670b1d9fde5aff60fe200ac7458603b1f82768f2abda03dccabb9c4cb3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.2",
      "date": "2026-09-23T11:57:08.000Z",
      "arch": "emscripten",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/b5b756d911e526f6c94b6482d8a7eb66a3f2c281d2da7954367ad91afdd12e42",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-09-23T11:58:15.000Z",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/f939b2d0a2bca6c6823d55ce87ed699b1656afec10d7647fc399117b76d0341e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-09-23T11:56:11.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/3aa33fdba25fec7bc006bf424ac7ea740bd29004d74c98e1e13be972af55585e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-09-23T11:56:25.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/70bb86b7ee907560f8c35eec8a8ccd1071d968337195ffd06aa5fac8cd177719",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-09-23T11:58:13.000Z",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/e3560e9c4333427c57ba9288e66eb3d472ef133bfd29575f73ccfef45814263f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-09-23T11:56:11.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "https://r2.ropensci.org/34c530814aec29fa9849c1233337215505b0df8ea1f5914054995cc594859df8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/35856943299"
    }
  ]
}