{
  "_id": "6af5aee8be2268deb4a3d476",
  "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://causal-lda.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:20:10 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": "causal-lda",
  "_type": "src",
  "_file": "TrialEmulation_0.0.5.tar.gz",
  "_fileid": "https://r2.ropensci.org/81be6e3265efc4450e3d106b318bf23eb576c6b068c06b763cb611adfb7d4ab1",
  "_filesize": 2398739,
  "_sha256": "81be6e3265efc4450e3d106b318bf23eb576c6b068c06b763cb611adfb7d4ab1",
  "_expires": "2027-02-20T12:19:50.000Z",
  "_created": "2026-11-12T11:20:10.000Z",
  "_published": "2026-11-20T01:55:52.923Z",
  "_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": 131149266292,
      "time": 200,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13939672234"
    },
    {
      "job": 131149266320,
      "time": 226,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13940687086"
    },
    {
      "job": 131149266159,
      "time": 192,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13939797193"
    },
    {
      "job": 131149266301,
      "time": 218,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13940427228"
    },
    {
      "job": 131149266274,
      "time": 2546,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13944191540"
    },
    {
      "job": 131149266217,
      "time": 586,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13940098090"
    },
    {
      "job": 131149266567,
      "time": 235,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13942040234"
    },
    {
      "job": 131149266220,
      "time": 491,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13940833049"
    },
    {
      "job": 131146889924,
      "time": 286,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13939063021"
    },
    {
      "job": 131149266134,
      "time": 128,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13939726502"
    },
    {
      "job": 131149266170,
      "time": 593,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13940852839"
    },
    {
      "job": 131149266204,
      "time": 398,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13938514550"
    },
    {
      "job": 131149266365,
      "time": 335,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13940942319"
    },
    {
      "job": 131149266339,
      "time": 650,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13940478317"
    },
    {
      "job": 131149266318,
      "time": 280,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13939777523"
    }
  ],
  "_buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594",
  "_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": true,
  "_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": 90907353,
    "type": "organization",
    "name": "Causal Inference with Longitudinal Data",
    "followers": 14,
    "description": "An academic-industry collaboration developing statistical software for causal longitudinal data analysis"
  },
  "_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": true,
  "_nocasepkg": "trialemulation",
  "_universes": [
    "causal-lda",
    "igrave"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.5",
      "date": "2026-11-12T11:22:28.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/68ac9cd4fb640584985c6259d39cc2df64c4888e7651bd3cedc3adfc6758eb83",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.5",
      "date": "2026-11-12T11:22:54.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/647f03a44ac12a7575cd7e419c4ec6ba79fca9bb971e7935fc8650b51e80211d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.0.5",
      "date": "2026-11-12T11:22:28.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/7acebe7ac7f0e03b8aecafa7d5c8c496dfc539953b46f02cd2e3d016e7f4e303",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.0.5",
      "date": "2026-11-12T11:22:53.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/cb9392026ba1ac1d7dd338b7d1e33727e4357432d63a4dc9659ff2cc270fcccd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.5",
      "date": "2026-11-12T12:16:51.000Z",
      "arch": "aarch64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/b0131b7190ab0641cbcd95ea38852feb6f770f39a86d417d5caaf1f9756a37bd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.5",
      "date": "2026-11-12T11:26:24.000Z",
      "arch": "x86_64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/8d793a534ef454a3a88ec457e5d6522aebde79c55b571117ac7c2544b520cd36",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.0.5",
      "date": "2026-11-12T11:39:29.000Z",
      "arch": "aarch64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/78eb36c08bb9b8dc7bdb6b25d3f1bd6883e1a67d1eeca1fbee084fa330ba1c7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.0.5",
      "date": "2026-11-12T11:25:33.000Z",
      "arch": "x86_64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/70943bb4872ce4bd48b15f37e0aaae515eb98e884663c172d619ab698ba153e7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.5",
      "date": "2026-11-12T11:22:51.000Z",
      "arch": "emscripten",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/729bb02ced9e2f29bf4e187c3b9e442c72168ee70b56b15c196cd05cbf44fdf1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.5",
      "date": "2026-11-12T11:27:46.000Z",
      "arch": "aarch64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/a39549b1ba8c958436c9aeb3c01a59ea5ebf30b8dae0cd71835f1b7393f64038",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.5",
      "date": "2026-11-12T11:23:19.000Z",
      "arch": "x86_64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/1063e5323af35b85764d7bf76c10d8ad7b7841e8553d6bbc5ba8a7a05ec41005",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.5",
      "date": "2026-11-12T11:23:03.000Z",
      "arch": "x86_64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/b69be1f0d9ca5fd8b0ba0ce461d11175f4ddae9bb75ce880084eeaa3344816e6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.0.5",
      "date": "2026-11-12T11:28:56.000Z",
      "arch": "aarch64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/31a61119c8d4cf8ddefc29affb2ccbcb42fee082dd58d33e29a36e2aabdabc9a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.0.5",
      "date": "2026-11-12T11:23:21.000Z",
      "arch": "x86_64",
      "commit": "735eea6a0cf227820f1c2af8cea4120635cb268a",
      "fileid": "https://r2.ropensci.org/66e1d83b265ab4361a3d93101ba112acebfc7905531e4d1bc0c5149c6fbc13ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causal-lda/actions/runs/43207631594"
    }
  ]
}