{
  "_id": "6a1d3cc71d7bb097a0a3f6b2",
  "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-06-01 07:57:57 UTC",
    "User": "root"
  },
  "Author": "Arthur Allignol [aut],\nMark Clements [cre, aut]",
  "Maintainer": "Mark Clements <mark.clements@ki.se>",
  "MD5sum": "e8a3f45953f45c3742a8660e8525fe71",
  "_user": "mclements",
  "_type": "src",
  "_file": "etm_1.1.2.tar.gz",
  "_fileid": "e8cb0eea2901aa759eb0cf53ef86d5ac1319bd497e61143baa38976798c7a4f6",
  "_filesize": 389964,
  "_sha256": "e8cb0eea2901aa759eb0cf53ef86d5ac1319bd497e61143baa38976798c7a4f6",
  "_created": "2026-06-01T07:57:57.000Z",
  "_published": "2026-06-01T08:03:19.592Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78809806767,
      "time": 206,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7326260008"
    },
    {
      "job": 78809806724,
      "time": 179,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7326251119"
    },
    {
      "job": 78809806891,
      "time": 167,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326247719"
    },
    {
      "job": 78809806867,
      "time": 176,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326250549"
    },
    {
      "job": 78809806722,
      "time": 142,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7326239535"
    },
    {
      "job": 78809806804,
      "time": 258,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7326276757"
    },
    {
      "job": 78809806771,
      "time": 140,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326238483"
    },
    {
      "job": 78809806742,
      "time": 202,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326258769"
    },
    {
      "job": 78809266028,
      "time": 223,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326195352"
    },
    {
      "job": 78809806693,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326230728"
    },
    {
      "job": 78809806746,
      "time": 176,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7326250184"
    },
    {
      "job": 78809806853,
      "time": 193,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7326255834"
    },
    {
      "job": 78809806736,
      "time": 161,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7326245225"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mclements/actions/runs/26742363683",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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"
  },
  "_downloads": {
    "count": 10798,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/etm"
  },
  "_mentions": 17,
  "_devurl": "https://github.com/mclements/etm",
  "_searchresults": 122,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/etm.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "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.499914395521579,
  "_indexed": true,
  "_nocasepkg": "etm",
  "_universes": [
    "mclements"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-06-01T08:01:00.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "9c1ca207ed3ac546fba606c727b76b87e04ca3ef0f3b18321858bd1c70ca3e03",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26742363683"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-06-01T08:00:27.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "84ffefdf485792652c13e551a39aab762d707f6da266dbffc5b0984bc913ce48",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26742363683"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-06-01T08:00:21.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "0732f405856fd14d9db475ce7f373d99580adbc4eca86e6be4b8171dfe03767f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26742363683"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-06-01T08:00:27.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "2c762587cf76b400803095d3a1b7be777b6d42ecd795b0b9b529e53c79a7425e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26742363683"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-06-01T08:00:04.000Z",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "da47f315b19140fcf0032a91e44756a07b678b08ecde8a2ce0eba40b69367f66",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26742363683"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-06-01T08:00:50.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "d9f211aa15382aef8b2241f2894cd581c81c26995c908357fc769fecadbca01f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26742363683"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-06-01T08:00:04.000Z",
      "arch": "aarch64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "62d64147df7436419099d54337e84983da46fa9689e3af44e6fbfe73d7d60be3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26742363683"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-06-01T08:00:36.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "b4467cde780239c6168749e3a28f4823ac8d9ce79d54e3ec8f10aed5d5bd440d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26742363683"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.2",
      "date": "2026-06-01T08:00:15.000Z",
      "arch": "emscripten",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "464f3c08c9dc265bbbe196554a3d1b8cacf493f1f7fc57eb4ca187247965c42f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26742363683"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-06-01T07:59:50.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "0edb346af40d46b61b855228efff0c114aa64af7fb8d26b151feb3278c9cb6ea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26742363683"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-06-01T07:59:46.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "36e9813cc78a4a6871d1fcd03e9c5d781c6e787f77bab158f38a499d7f5bbf5a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26742363683"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-06-01T07:59:36.000Z",
      "arch": "x86_64",
      "commit": "f9ff9b45524e83ac79f3c5db6170f6d724a328a5",
      "fileid": "195a8554e62184df00bcc7c558b035dd24aa5476366775e9d014742139cbfa07",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26742363683"
    }
  ]
}