{
  "_id": "6af5ad58f58eaab79920b911",
  "Package": "TrialEmulation",
  "Title": "Causal Analysis of Observational Time-to-Event Data",
  "Version": "0.0.5",
  "Authors@R": "c(\nperson(\"Isaac\", \"Gravestock\", , \"isaac.gravestock@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0003-0283-2065\")),\nperson(\"Li\", \"Su\", , \"li.su@mrc-bsu.cam.ac.uk\", role = \"aut\"),\nperson(\"Roonak\", \"Rezvani\", , \"roonak.r74@gmail.com\", role = \"aut\",\ncomment = c(ORCID = \"0000-0001-5580-5058\", \"Original package author\")),\nperson(\"Julia\", \"Moesch\", , \"julia.moesch@roche.com\", role = \"aut\"),\nperson(\"Juliette\", \"Limozin\", , role = \"aut\",\ncomment = c(ORCID = \"0000-0002-1140-2350\")),\nperson(\"Medical Research Council (MRC)\", role = \"fnd\"),\nperson(\"F. Hoffmann-La Roche AG\", role = c(\"cph\", \"fnd\"))\n)",
  "Description": "Implements target trial emulation methods to apply\nrandomized clinical trial design and analysis in an\nobservational setting. Using marginal structural models, it can\nestimate intention-to-treat and per-protocol effects in\nemulated trials using electronic health records. A description\nand application of the method can be found in Danaei et al\n(2013) <doi:10.1177/0962280211403603>.",
  "License": "Apache License (>= 2)",
  "URL": "https://causal-lda.github.io/TrialEmulation/,\nhttps://github.com/Causal-LDA/TrialEmulation",
  "BugReports": "https://github.com/Causal-LDA/TrialEmulation/issues",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "LazyData": "true",
  "LazyDataCompression": "xz",
  "Roxygen": "list(markdown = TRUE)",
  "Collate": "'RcppExports.R' 'bootstrap.R' 'bootstrap_helpers.R'\n'calculate_weights.R' 'data.R' 'data_extension.R'\n'data_manipulation.R' 'data_preparation.R' 'data_simulation.R'\n'data_utils.R' 'expand_trials.R' 'generics.R' 'initiators.R'\n'lr_utils.R' 'te_model_fitter.R' 'te_outcome_model.R'\n'te_datastore.R' 'te_weights.R' 'te_data.R' 'te_expansion.R'\n'trial_sequence.R' 'modelling.R' 'package.R' 'predict.R'\n'robust.R' 'sampling.R' 'te_datastore_csv.R'\n'te_datastore_duckdb.R' 'te_parsnip.R' 'te_stats_glm_logit.R'\n'utils.R' 'weighting.R'",
  "Config/roxygen2/version": "8.1.0",
  "Config/Needs/website": "rmarkdown",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://remlapmot.r-universe.dev",
  "Date/Publication": "2026-08-14 07:21:13 UTC",
  "RemoteUrl": "https://github.com/Causal-LDA/TrialEmulation",
  "RemoteRef": "HEAD",
  "RemoteSha": "735eea6a0cf227820f1c2af8cea4120635cb268a",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-11-12 11:15:57 UTC",
    "User": "root"
  },
  "Author": "Isaac Gravestock [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-0283-2065>),\nLi Su [aut],\nRoonak Rezvani [aut] (ORCID: <https://orcid.org/0000-0001-5580-5058>,\nOriginal package author),\nJulia Moesch [aut],\nJuliette Limozin [aut] (ORCID: <https://orcid.org/0000-0002-1140-2350>),\nMedical Research Council (MRC) [fnd],\nF. Hoffmann-La Roche AG [cph, fnd]",
  "Maintainer": "Isaac Gravestock <isaac.gravestock@gmail.com>",
  "_user": "remlapmot",
  "_type": "src",
  "_file": "TrialEmulation_0.0.5.tar.gz",
  "_fileid": "https://r2.ropensci.org/7358ecb37aa578bf3648fd04ca8a0e648ffc0cc1e47224fb8a60a4e793a952b3",
  "_filesize": 2398715,
  "_sha256": "7358ecb37aa578bf3648fd04ca8a0e648ffc0cc1e47224fb8a60a4e793a952b3",
  "_expires": "2027-02-20T12:13:10.000Z",
  "_created": "2026-11-12T11:15:57.000Z",
  "_published": "2026-11-12T12:13:12.286Z",
  "_upstream": "https://github.com/Causal-LDA/TrialEmulation",
  "_status": "success",
  "_maintainer": {
    "name": "Isaac Gravestock",
    "email": "isaac.gravestock@gmail.com",
    "login": "igrave",
    "description": "",
    "uuid": 22935162,
    "orcid": "0000-0003-0283-2065"
  },
  "_jobs": [
    {
      "job": 131147238626,
      "time": 250,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13939771720"
    },
    {
      "job": 131147238654,
      "time": 248,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13940846371"
    },
    {
      "job": 131147238738,
      "time": 201,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13939836180"
    },
    {
      "job": 131147238689,
      "time": 254,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13938888217"
    },
    {
      "job": 131147238600,
      "time": 2108,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13943846297"
    },
    {
      "job": 131147238557,
      "time": 351,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13938878782"
    },
    {
      "job": 131147238619,
      "time": 219,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13941611239"
    },
    {
      "job": 131147238676,
      "time": 395,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13940962103"
    },
    {
      "job": 131144662418,
      "time": 307,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13938632673"
    },
    {
      "job": 131147238551,
      "time": 128,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13939916352"
    },
    {
      "job": 131147238885,
      "time": 333,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13939746806"
    },
    {
      "job": 131147238582,
      "time": 324,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13938958319"
    },
    {
      "job": 131147238791,
      "time": 263,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13938598429"
    },
    {
      "job": 131147238645,
      "time": 342,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13939841440"
    },
    {
      "job": 131147238702,
      "time": 348,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13938713436"
    }
  ],
  "_buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667",
  "_commit": {
    "id": "735eea6a0cf227820f1c2af8cea4120635cb268a",
    "author": "Isaac Gravestock <83659704+gravesti@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "new release (#242)\n\n* updates\n\n* Increment version number to 0.0.5\n\n* update news\n\n\n* move to articles\n\n* formatting\n\n* convert to article\n\n* [skip roxygen] [skip vbump] Roxygen Man Pages Auto Update\n\n* tidy up, skip long tests\n\n* address review comments\n\n---------\n\nCo-authored-by: igrave <isaac.gravestock@gmail.com>\nCo-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>",
    "time": 1786692073
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "broom",
      "version": ">= 0.7.10",
      "role": "Imports"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "version": ">= 1.9.8",
      "role": "Imports"
    },
    {
      "package": "DBI",
      "role": "Imports"
    },
    {
      "package": "duckdb",
      "role": "Imports"
    },
    {
      "package": "formula.tools",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "lmtest",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "sandwich",
      "role": "Imports"
    },
    {
      "package": "future.apply",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "parsnip",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rpart",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "causal-lda",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-46",
      "n": 2
    },
    {
      "week": "2025-47",
      "n": 4
    },
    {
      "week": "2026-03",
      "n": 2
    },
    {
      "week": "2026-15",
      "n": 2
    },
    {
      "week": "2026-18",
      "n": 1
    },
    {
      "week": "2026-26",
      "n": 1
    },
    {
      "week": "2026-33",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.0.4.7",
      "date": "2025-11-17"
    },
    {
      "name": "v0.0.4.8",
      "date": "2025-11-18"
    },
    {
      "name": "v0.0.4.9",
      "date": "2026-01-13"
    },
    {
      "name": "v0.0.4.11",
      "date": "2026-04-09"
    }
  ],
  "_topics": [
    "causal-inference",
    "longitudinal-data",
    "survival-analysis",
    "cpp"
  ],
  "_stars": 44,
  "_contributors": [
    {
      "user": "gravesti",
      "count": 296,
      "uuid": 83659704
    },
    {
      "user": "darkgoldenrod-cherry",
      "count": 20,
      "uuid": 104455590
    },
    {
      "user": "roonakr",
      "count": 3,
      "uuid": 47562815
    },
    {
      "user": "juliettelimozin",
      "count": 2,
      "uuid": 66910470
    },
    {
      "user": "hadley",
      "count": 1,
      "uuid": 4196
    },
    {
      "user": "joshhwuu",
      "count": 1,
      "uuid": 124658199
    }
  ],
  "_userbio": {
    "uuid": 3777473,
    "type": "user",
    "name": "Tom Palmer",
    "followers": 112,
    "description": "Averaging statistician ... "
  },
  "_downloads": {
    "count": 621,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/TrialEmulation"
  },
  "_devurl": "https://github.com/causal-lda/trialemulation",
  "_pkgdown": "https://causal-lda.github.io/TrialEmulation/",
  "_searchresults": 103,
  "_abi": {
    "exports": [
      {
        "key": "TrialEmulation::generic:calculate_weights",
        "hash": "9d465ad38732f68d"
      },
      {
        "key": "TrialEmulation::generic:expand_trials",
        "hash": "798b630d58adb1a9"
      },
      {
        "key": "TrialEmulation::generic:fit_msm",
        "hash": "4f049a6fc58275dc"
      },
      {
        "key": "TrialEmulation::generic:fit_outcome_model",
        "hash": "06d0f5822b60f54c"
      },
      {
        "key": "TrialEmulation::generic:fit_weights_model",
        "hash": "812baa586ecebab8"
      },
      {
        "key": "TrialEmulation::generic:ipw_data",
        "hash": "8f95d1e2f6010755"
      },
      {
        "key": "TrialEmulation::generic:ipw_data<-",
        "hash": "73501f3cb51aef55"
      },
      {
        "key": "TrialEmulation::generic:load_expanded_data",
        "hash": "24b5f670183ee1a9"
      },
      {
        "key": "TrialEmulation::generic:outcome_data",
        "hash": "267437391c1324b3"
      },
      {
        "key": "TrialEmulation::generic:outcome_data<-",
        "hash": "9920e20353f8853b"
      },
      {
        "key": "TrialEmulation::generic:read_expanded_data",
        "hash": "98ea35b99ee7fc06"
      },
      {
        "key": "TrialEmulation::generic:sample_controls",
        "hash": "5cb31b70e17d5232"
      },
      {
        "key": "TrialEmulation::generic:sample_expanded_data",
        "hash": "65f05b9a24ab9f13"
      },
      {
        "key": "TrialEmulation::generic:save_expanded_data",
        "hash": "0c7d25497923829c"
      },
      {
        "key": "TrialEmulation::generic:set_censor_weight_model",
        "hash": "3b69bad15e4a448e"
      },
      {
        "key": "TrialEmulation::generic:set_data",
        "hash": "3df529568286a6ea"
      },
      {
        "key": "TrialEmulation::generic:set_expansion_options",
        "hash": "417733ed54c5d7c2"
      },
      {
        "key": "TrialEmulation::generic:set_outcome_model",
        "hash": "ee3c047d6c34208c"
      },
      {
        "key": "TrialEmulation::generic:set_switch_weight_model",
        "hash": "b0eb3040bba31936"
      },
      {
        "key": "TrialEmulation::te_data",
        "hash": "a76609d6b6ade0f5"
      },
      {
        "key": "TrialEmulation::te_data_unset",
        "hash": "ba32dcf53d0c171d"
      },
      {
        "key": "TrialEmulation::te_datastore",
        "hash": "670051448261cdf1"
      },
      {
        "key": "TrialEmulation::te_datastore_csv",
        "hash": "9f296779f8d3c54f"
      },
      {
        "key": "TrialEmulation::te_datastore_datatable",
        "hash": "b176077524f907a1"
      },
      {
        "key": "TrialEmulation::te_datastore_duckdb",
        "hash": "d673eb5343b700fb"
      },
      {
        "key": "TrialEmulation::te_expansion",
        "hash": "49cb85a350939f95"
      },
      {
        "key": "TrialEmulation::te_expansion_unset",
        "hash": "8b9c8cce763045ba"
      },
      {
        "key": "TrialEmulation::te_model_fitter",
        "hash": "2e351a6bde825a6d"
      },
      {
        "key": "TrialEmulation::te_outcome_data",
        "hash": "b117ac24c9bd9b9a"
      },
      {
        "key": "TrialEmulation::te_outcome_fitted",
        "hash": "f7fb92e5a0ef6e7a"
      },
      {
        "key": "TrialEmulation::te_outcome_model",
        "hash": "f1b0ef990ad9df9c"
      },
      {
        "key": "TrialEmulation::te_outcome_model_unset",
        "hash": "0bd623a5ad82a4d4"
      },
      {
        "key": "TrialEmulation::te_parsnip_model",
        "hash": "d0f4266cd041a585"
      },
      {
        "key": "TrialEmulation::te_stats_glm_logit",
        "hash": "2ec9998a20f0b2df"
      },
      {
        "key": "TrialEmulation::te_stats_glm_logit_outcome_fitted",
        "hash": "9248a872b9577ce1"
      },
      {
        "key": "TrialEmulation::te_weights_censoring",
        "hash": "9ac06498f1547c29"
      },
      {
        "key": "TrialEmulation::te_weights_fitted",
        "hash": "c581221761aeb62a"
      },
      {
        "key": "TrialEmulation::te_weights_spec",
        "hash": "bb1f4f95e6c7f299"
      },
      {
        "key": "TrialEmulation::te_weights_switch",
        "hash": "d1d65261fb1fdb3d"
      },
      {
        "key": "TrialEmulation::te_weights_unset",
        "hash": "6a9622bcb00d5f59"
      },
      {
        "key": "TrialEmulation::trial_sequence",
        "hash": "1365ae8b6972fede"
      },
      {
        "key": "TrialEmulation::trial_sequence_AT",
        "hash": "493df19c2e672997"
      },
      {
        "key": "TrialEmulation::trial_sequence_ITT",
        "hash": "dcccd8f6099609ca"
      },
      {
        "key": "TrialEmulation::trial_sequence_PP",
        "hash": "9c90dc74b1884b11"
      }
    ],
    "imports": [
      {
        "key": "Rcpp::Rcpp_precious_preserve()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "Rcpp::Rcpp_precious_remove()",
        "hash": "63d26947ba7e1377"
      },
      {
        "key": "Rcpp::dataptr()",
        "hash": "54e69ad2e6668c83"
      },
      {
        "key": "Rcpp::demangle()",
        "hash": "b0cfd6754c5ebc4e"
      },
      {
        "key": "Rcpp::enterRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::exitRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::rcpp_get_stack_trace()",
        "hash": "c684a9bbe15cdc52"
      },
      {
        "key": "Rcpp::rcpp_set_stack_trace()",
        "hash": "33a97ea62b293da6"
      }
    ]
  },
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/TrialEmulation.html"
  ],
  "_homeurl": "https://github.com/causal-lda/trialemulation",
  "_realowner": "causal-lda",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.3.2",
      "date": "2023-08-25"
    },
    {
      "version": "0.0.3.8",
      "date": "2024-01-24"
    },
    {
      "version": "0.0.3.9",
      "date": "2024-09-09"
    },
    {
      "version": "0.0.4.0",
      "date": "2024-11-29"
    },
    {
      "version": "0.0.4.2",
      "date": "2025-02-21"
    },
    {
      "version": "0.0.4.5",
      "date": "2025-06-13"
    },
    {
      "version": "0.0.4.8",
      "date": "2025-11-19"
    },
    {
      "version": "0.0.4.9",
      "date": "2026-01-14"
    },
    {
      "version": "0.0.4.11",
      "date": "2026-04-10"
    },
    {
      "version": "0.0.5",
      "date": "2026-08-25"
    }
  ],
  "_exports": [
    "calculate_weights",
    "case_control_sampling_trials",
    "data_preparation",
    "expand_trials",
    "fit_msm",
    "fit_outcome_model",
    "fit_weights_model",
    "initiators",
    "ipw_data",
    "ipw_data<-",
    "load_expanded_data",
    "outcome_data",
    "outcome_data<-",
    "parsnip_model",
    "predict",
    "read_expanded_data",
    "sample_expanded_data",
    "save_expanded_data",
    "save_to_csv",
    "save_to_datatable",
    "save_to_duckdb",
    "set_censor_weight_model",
    "set_data",
    "set_expansion_options",
    "set_outcome_model",
    "set_switch_weight_model",
    "show_weight_models",
    "stats_glm_logit",
    "trial_msm",
    "trial_sequence",
    "weight_model_data_indices"
  ],
  "_datasets": [
    {
      "name": "data_censored",
      "title": "Example of longitudinal data for sequential trial emulation containing censoring",
      "object": "data_censored",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "period",
        "treatment",
        "x1",
        "x2",
        "x3",
        "x4",
        "age",
        "age_s",
        "outcome",
        "censored",
        "eligible"
      ],
      "rows": 725,
      "table": true,
      "tojson": true
    },
    {
      "name": "te_data_ex",
      "title": "Example of a prepared data object",
      "object": "te_data_ex",
      "class": [
        "TE_data_prep_dt",
        "TE_data_prep"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "te_model_ex",
      "title": "Example of a fitted marginal structural model object",
      "object": "te_model_ex",
      "class": [
        "TE_msm"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "trial_example",
      "title": "Example of longitudinal data for sequential trial emulation",
      "object": "trial_example",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "eligible",
        "period",
        "outcome",
        "treatment",
        "catvarA",
        "catvarB",
        "catvarC",
        "nvarA",
        "nvarB",
        "nvarC"
      ],
      "rows": 48400,
      "table": true,
      "tojson": true
    },
    {
      "name": "vignette_switch_data",
      "title": "Example of expanded longitudinal data for sequential trial emulation",
      "object": "vignette_switch_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "trial_period",
        "followup_time",
        "outcome",
        "weight",
        "treatment",
        "catvarA",
        "catvarB",
        "catvarC",
        "nvarA",
        "nvarB",
        "nvarC",
        "assigned_treatment"
      ],
      "rows": 1939053,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calculate_weights",
      "title": "Calculate Inverse Probability of Censoring Weights",
      "topics": [
        "calculate_weights",
        "calculate_weights,trial_sequence_AT-method",
        "calculate_weights,trial_sequence_ITT-method",
        "calculate_weights,trial_sequence_PP-method"
      ]
    },
    {
      "page": "case_control_sampling_trials",
      "title": "Case-control sampling of expanded data for the sequence of emulated trials",
      "topics": [
        "case_control_sampling_trials"
      ]
    },
    {
      "page": "data_censored",
      "title": "Example of longitudinal data for sequential trial emulation containing censoring",
      "topics": [
        "data_censored"
      ]
    },
    {
      "page": "data_preparation",
      "title": "Prepare data for the sequence of emulated target trials",
      "topics": [
        "data_preparation"
      ]
    },
    {
      "page": "expand_trials",
      "title": "Expand trials",
      "topics": [
        "expand_trials"
      ]
    },
    {
      "page": "fit_msm",
      "title": "Fit the marginal structural model for the sequence of emulated trials",
      "topics": [
        "fit_msm",
        "fit_msm,trial_sequence-method"
      ]
    },
    {
      "page": "fit_weights_model",
      "title": "Method for fitting weight models",
      "topics": [
        "fit_weights_model"
      ]
    },
    {
      "page": "initiators",
      "title": "A wrapper function to perform data preparation and model fitting in a sequence of emulated target trials",
      "topics": [
        "initiators"
      ]
    },
    {
      "page": "ipw_data",
      "title": "IPW Data Accessor and Setter",
      "topics": [
        "ipw_data",
        "ipw_data,trial_sequence-method",
        "ipw_data<-",
        "ipw_data<-,trial_sequence-method"
      ]
    },
    {
      "page": "load_expanded_data",
      "title": "Method to read, subset and sample expanded data",
      "topics": [
        "load_expanded_data",
        "load_expanded_data,trial_sequence-method"
      ]
    },
    {
      "page": "outcome_data",
      "title": "Outcome Data Accessor and Setter",
      "topics": [
        "outcome_data",
        "outcome_data,trial_sequence-method",
        "outcome_data<-",
        "outcome_data<-,trial_sequence-method"
      ]
    },
    {
      "page": "parsnip_model",
      "title": "Fit outcome models using 'parsnip' models",
      "concept": [
        "model_fitter"
      ],
      "topics": [
        "parsnip_model"
      ]
    },
    {
      "page": "predict_marginal",
      "title": "Predict marginal cumulative incidences with confidence intervals for a target trial population",
      "topics": [
        "predict",
        "predict,trial_sequence_ITT-method",
        "predict,trial_sequence_PP-method",
        "predict.TE_msm",
        "predict_marginal"
      ]
    },
    {
      "page": "print_TE",
      "title": "Print a weight summary object",
      "topics": [
        "print.TE_weight_summary"
      ]
    },
    {
      "page": "read_expanded_data",
      "title": "Method to read expanded data",
      "topics": [
        "read_expanded_data",
        "read_expanded_data,te_datastore_datatable-method"
      ]
    },
    {
      "page": "sample_expanded_data",
      "title": "Internal method to sample expanded data",
      "topics": [
        "sample_expanded_data",
        "sample_expanded_data,te_datastore-method"
      ]
    },
    {
      "page": "save_expanded_data",
      "title": "Method to save expanded data",
      "topics": [
        "save_expanded_data",
        "save_expanded_data,te_datastore_datatable-method"
      ]
    },
    {
      "page": "save_to_csv",
      "title": "Save expanded data as CSV",
      "concept": [
        "save_to"
      ],
      "topics": [
        "save_to_csv"
      ]
    },
    {
      "page": "save_to_datatable",
      "title": "Save expanded data as a 'data.table'",
      "concept": [
        "save_to"
      ],
      "topics": [
        "save_to_datatable"
      ]
    },
    {
      "page": "save_to_duckdb",
      "title": "Save expanded data to 'DuckDB'",
      "concept": [
        "save_to"
      ],
      "topics": [
        "save_to_duckdb"
      ]
    },
    {
      "page": "set_censor_weight_model",
      "title": "Set censoring weight model",
      "topics": [
        "set_censor_weight_model",
        "set_censor_weight_model,trial_sequence-method",
        "set_censor_weight_model,trial_sequence_AT-method",
        "set_censor_weight_model,trial_sequence_ITT-method",
        "set_censor_weight_model,trial_sequence_PP-method"
      ]
    },
    {
      "page": "set_data",
      "title": "Set the trial data",
      "topics": [
        "set_data",
        "set_data,trial_sequence_AT,data.frame-method",
        "set_data,trial_sequence_ITT,data.frame-method",
        "set_data,trial_sequence_PP,data.frame-method"
      ]
    },
    {
      "page": "set_expansion_options",
      "title": "Set expansion options",
      "concept": [
        "save_to"
      ],
      "topics": [
        "set_expansion_options",
        "set_expansion_options,trial_sequence_ITT-method",
        "set_expansion_options,trial_sequence_PP-method"
      ]
    },
    {
      "page": "set_outcome_model",
      "title": "Specify the outcome model",
      "topics": [
        "set_outcome_model",
        "set_outcome_model,trial_sequence-method",
        "set_outcome_model,trial_sequence_AT-method",
        "set_outcome_model,trial_sequence_ITT-method",
        "set_outcome_model,trial_sequence_PP-method"
      ]
    },
    {
      "page": "set_switch_weight_model",
      "title": "Set switching weight model",
      "topics": [
        "set_switch_weight_model",
        "set_switch_weight_model,trial_sequence-method",
        "set_switch_weight_model,trial_sequence_ITT-method"
      ]
    },
    {
      "page": "show_weight_models",
      "title": "Show Weight Model Summaries",
      "topics": [
        "show_weight_models"
      ]
    },
    {
      "page": "stats_glm_logit",
      "title": "Fit outcome models using 'stats::glm'",
      "concept": [
        "model_fitter"
      ],
      "topics": [
        "stats_glm_logit"
      ]
    },
    {
      "page": "summary_TE",
      "title": "Summary methods",
      "topics": [
        "summary.TE_data_prep",
        "summary.TE_data_prep_dt",
        "summary.TE_data_prep_sep",
        "summary.TE_msm",
        "summary.TE_robust"
      ]
    },
    {
      "page": "te_data_ex",
      "title": "Example of a prepared data object",
      "topics": [
        "te_data_ex"
      ]
    },
    {
      "page": "te_data-class",
      "title": "TrialEmulation Data Class",
      "topics": [
        "te_data-class"
      ]
    },
    {
      "page": "te_datastore-class",
      "title": "te_datastore",
      "topics": [
        "te_datastore-class"
      ]
    },
    {
      "page": "te_model_ex",
      "title": "Example of a fitted marginal structural model object",
      "topics": [
        "te_model_ex"
      ]
    },
    {
      "page": "te_model_fitter-class",
      "title": "Outcome Model Fitter Class",
      "concept": [
        "model_fitter"
      ],
      "topics": [
        "te_model_fitter-class"
      ]
    },
    {
      "page": "te_outcome_data-class",
      "title": "TrialEmulation Outcome Data Class",
      "topics": [
        "te_outcome_data-class"
      ]
    },
    {
      "page": "te_outcome_fitted-class",
      "title": "Fitted Outcome Model Object",
      "topics": [
        "te_outcome_fitted-class"
      ]
    },
    {
      "page": "te_outcome_model-class",
      "title": "Fitted Outcome Model Object",
      "topics": [
        "te_outcome_model-class"
      ]
    },
    {
      "page": "trial_example",
      "title": "Example of longitudinal data for sequential trial emulation",
      "topics": [
        "trial_example"
      ]
    },
    {
      "page": "trial_msm",
      "title": "Fit the marginal structural model for the sequence of emulated trials",
      "topics": [
        "trial_msm"
      ]
    },
    {
      "page": "trial_sequence",
      "title": "Create a sequence of emulated target trials object",
      "topics": [
        "trial_sequence"
      ]
    },
    {
      "page": "trial_sequence-class",
      "title": "Trial Sequence class",
      "topics": [
        "trial_sequence-class",
        "trial_sequence_AT-class",
        "trial_sequence_ITT-class",
        "trial_sequence_PP-class"
      ]
    },
    {
      "page": "vignette_switch_data",
      "title": "Example of expanded longitudinal data for sequential trial emulation",
      "topics": [
        "vignette_switch_data"
      ]
    },
    {
      "page": "weight_model_data_indices",
      "title": "Data used in weight model fitting",
      "topics": [
        "weight_model_data_indices"
      ]
    }
  ],
  "_pkglogo": "https://github.com/Causal-LDA/TrialEmulation/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/Causal-LDA/TrialEmulation/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "broom",
    "checkmate",
    "cli",
    "codetools",
    "cpp11",
    "data.table",
    "DBI",
    "dplyr",
    "duckdb",
    "formula.tools",
    "future",
    "future.apply",
    "generics",
    "globals",
    "glue",
    "lattice",
    "lifecycle",
    "listenv",
    "lmtest",
    "magrittr",
    "mvtnorm",
    "operator.tools",
    "parallelly",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "Rcpp",
    "rlang",
    "sandwich",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr",
    "zoo"
  ],
  "_sysdeps": [
    {
      "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": "Extending-TrialEmulation.Rmd",
      "filename": "Extending-TrialEmulation.html",
      "title": "Extending-TrialEmulation",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Model fitters",
        "Classes and Slots",
        "User Constructor",
        "Methods",
        "fit_weights_model",
        "fit_outcome_model",
        "predict",
        "Data Stores",
        "show",
        "save_expanded_data",
        "read_expanded_data",
        "sample_expanded_data"
      ],
      "created": "2024-08-23 11:10:57",
      "modified": "2024-08-23 11:10:57",
      "commits": 1
    },
    {
      "source": "Getting-Started.Rmd",
      "filename": "Getting-Started.html",
      "title": "Getting-Started",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Required Data",
        "All-in-one analysis",
        "Flexible Analysis"
      ],
      "created": "2021-10-06 14:29:33",
      "modified": "2025-11-18 14:11:00",
      "commits": 22
    },
    {
      "source": "new-interface.Rmd",
      "filename": "new-interface.html",
      "title": "New Interface",
      "engine": "knitr::rmarkdown",
      "headings": [
        "User Interface",
        "Observational Data",
        "Weight Models",
        "Censoring due to treatment switching",
        "Other informative censoring",
        "Calculate Weights",
        "Specify Outcome Model",
        "Expand Trials",
        "Set Expansion Options",
        "Create Sequence of Trials Data",
        "Sample or Load from Expanded Data",
        "Fit Marginal Structural Model",
        "Inference",
        "Flowchart"
      ],
      "created": "2024-06-04 08:39:44",
      "modified": "2026-04-27 15:15:23",
      "commits": 8
    }
  ],
  "_score": 8.376449204597318,
  "_indexed": false,
  "_nocasepkg": "trialemulation",
  "_universes": [
    "remlapmot"
  ],
  "_indexurl": "https://causal-lda.r-universe.dev/TrialEmulation",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.5",
      "date": "2026-11-12T11:19:06.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/e76d82fed6685a812493a25a009d42a011067b9e29aacf89910044fd5d1da091",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.5",
      "date": "2026-11-12T11:18:55.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/49b887a6daa94f878639ce2a79853ed8fb008a096bd49fe7213921a213f2ae44",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.0.5",
      "date": "2026-11-12T11:18:29.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/5c9b88b733db57586ba63573edf5dda9142497737dab28d4331bbbd6543e4ec7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.0.5",
      "date": "2026-11-12T11:19:20.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/c730d31862c3126a464e19436109b07f24b8554ad00eabd601c736edf44ac4c4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.5",
      "date": "2026-11-12T12:10:54.000Z",
      "arch": "aarch64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/a16155cb23b1842397d21240a36dcf87067ee579f38490fd7192eefab2d54033",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.5",
      "date": "2026-11-12T11:20:36.000Z",
      "arch": "x86_64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/7275db271c1720721906441d94d18aeb1ea6a9b54e92bef24d6a71832ad53e80",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.0.5",
      "date": "2026-11-12T11:41:19.000Z",
      "arch": "aarch64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/d83814a00d9abc1fa687d953bb2a7182bafad1f39e5fd0d39eb141ba6a891368",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.0.5",
      "date": "2026-11-12T11:21:07.000Z",
      "arch": "x86_64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/cc3b30507ad5fa66cdea878a307c29468f78c311d1a4dcdb86865436b9c82811",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.5",
      "date": "2026-11-12T11:18:46.000Z",
      "arch": "emscripten",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/5c7e603be9fb673a2c0ffd6ff60e8ab986f408c2ea965d9187e5a73e871ba5d5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.5",
      "date": "2026-11-12T11:19:46.000Z",
      "arch": "aarch64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/35fbf650243ecf8966a26e2bb2fef8d7c7bf7f93b23a7827b84cb984acf50413",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.5",
      "date": "2026-11-12T11:18:51.000Z",
      "arch": "x86_64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/27265e566f0953cd5580f886ae97daf45fc053725b94d0b2891c2b5898d387eb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.5",
      "date": "2026-11-12T11:18:37.000Z",
      "arch": "x86_64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/1d19e1eb1cabdedf13a03036529eb11d2c1b31e0da5fda1d309b90dac84a3fbb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.0.5",
      "date": "2026-11-12T11:20:10.000Z",
      "arch": "aarch64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/152a1e7640d4303c0770d65156bb4141083eae5592a4a38f869d3389762d84ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.0.5",
      "date": "2026-11-12T11:18:52.000Z",
      "arch": "x86_64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/d34ccf320f42f0f2e331bbf34d6ebb97cc9a7a9b882b6b071108bae7ca2d2434",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/43206978667"
    }
  ]
}