{
  "_id": "6ab8c9aa99f7aa8c6aa36921",
  "Package": "debiasedTrialEmulation",
  "Type": "Package",
  "Title": "Pipeline for Debiased Target Trial Emulation",
  "Version": "0.1.2",
  "Authors@R": "c(person(\"Bingyu\", \"Zhang\", role = c(\"aut\",\"cre\"), email = \"bingyuz7@sas.upenn.edu\"),\nperson(\"Yiwen\", \"Lu\", role = \"aut\"),\nperson(\"Huilin\", \"Tang\", role = \"aut\"),\nperson(\"Dazheng\",\"Zhang\", role = \"aut\"),\nperson(\"Yuqing\", \"Lei\", role = \"aut\"),\nperson(\"Tingyin\", \"Wang\", role = \"aut\"),\nperson(\"Siqi\", \"Chen\", role = \"aut\"),\nperson(\"Yong\",\"Chen\",role = \"aut\",email = \"ychen123@pennmedicine.upenn.edu\"))",
  "Description": "Supports propensity score-based methods—including\nmatching, stratification, and weighting—for estimating causal\ntreatment effects. It also implements calibration using\nnegative control outcomes to enhance robustness.\n'debiasedTrialEmulation' facilitates effect estimation for both\nbinary and time-to-event outcomes, supporting risk ratio (RR),\nodds ratio (OR), and hazard ratio (HR) as effect measures. It\nintegrates statistical modeling and visualization tools to\nassess covariate balance, equipoise, and bias calibration.\nAdditional methods—including approaches to address immortal\ntime bias, information bias, selection bias, and informative\ncensoring—are under development. Users interested in these\nextended features are encouraged to contact the package\nauthors.",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.2",
  "NeedsCompilation": "no",
  "Author": "Bingyu Zhang [aut, cre], Yiwen Lu [aut], Huilin Tang [aut],\nDazheng Zhang [aut], Yuqing Lei [aut], Tingyin Wang [aut], Siqi\nChen [aut], Yong Chen [aut]",
  "Maintainer": "Bingyu Zhang <bingyuz7@sas.upenn.edu>",
  "Packaged": {
    "Date": "2026-09-27 07:42:18 UTC",
    "User": "root"
  },
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-03-20 03:13:02 UTC",
  "RemoteUrl": "https://github.com/cran/debiasedTrialEmulation",
  "RemoteRef": "HEAD",
  "RemoteSha": "bd76d4b542082dbc769e3c05f6d1454cdc1762a8",
  "_user": "cran",
  "_type": "src",
  "_file": "debiasedTrialEmulation_0.1.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/e9bee3aa66a7d3d8098e4433e9bb75046a9eeaacde953e58187bdf500deb1811",
  "_filesize": 1907058,
  "_sha256": "e9bee3aa66a7d3d8098e4433e9bb75046a9eeaacde953e58187bdf500deb1811",
  "_expires": "2027-01-05T07:45:44.000Z",
  "_created": "2026-09-27T07:42:18.000Z",
  "_published": "2026-09-27T07:45:46.042Z",
  "_jobs": [
    {
      "job": 108576761144,
      "time": 162,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10925414718"
    },
    {
      "job": 108576761176,
      "time": 163,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10926975701"
    },
    {
      "job": 108576215654,
      "time": 223,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10926164972"
    },
    {
      "job": 108576761140,
      "time": 140,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10926572453"
    },
    {
      "job": 108576761170,
      "time": 122,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10926118528"
    },
    {
      "job": 108576761135,
      "time": 109,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10926686473"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/36303728587",
  "_status": "success",
  "_upstream": "https://github.com/cran/debiasedTrialEmulation",
  "_commit": {
    "id": "bd76d4b542082dbc769e3c05f6d1454cdc1762a8",
    "author": "Bingyu Zhang <bingyuz7@sas.upenn.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.2\n",
    "time": 1773976382
  },
  "_maintainer": {
    "name": "Bingyu Zhang",
    "email": "bingyuz7@sas.upenn.edu"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "janitor",
      "role": "Imports"
    },
    {
      "package": "cobalt",
      "role": "Imports"
    },
    {
      "package": "MatchIt",
      "role": "Imports"
    },
    {
      "package": "geex",
      "role": "Imports"
    },
    {
      "package": "glmnet",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "ParallelLogger",
      "role": "Imports"
    },
    {
      "package": "EmpiricalCalibration",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-12",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.2",
      "date": "2026-03-20"
    }
  ],
  "_stars": 1,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 630,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 276,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/debiasedTrialEmulation"
  },
  "_searchresults": 0,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/debiasedTrialEmulation.html",
    "extra/manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2025-05-27"
    },
    {
      "version": "0.1.2",
      "date": "2026-03-20"
    }
  ],
  "_exports": [
    "calibrate_TTE",
    "Compute_weight",
    "computePreferenceScore",
    "computeWeights",
    "estEffect_matching",
    "estEffect_stratification",
    "estEffect_weighting",
    "get_HR_matching",
    "get_HR_stratification",
    "get_HR_weighting",
    "get_OR_matching",
    "get_OR_stratification",
    "get_OR_weighting",
    "get_RR_matching",
    "get_RR_stratification",
    "get_RR_weighting",
    "GetSMD",
    "plot_Equipoise_matching",
    "plot_Equipoise_stratification",
    "plot_Equipoise_weighting",
    "plot_SMD_matching",
    "plot_SMD_stratification",
    "plot_SMD_weighting",
    "plotCovariateBalanceOfTopVariables",
    "plotPs",
    "stratifyByPs",
    "summary.dTTE",
    "summary.TTE",
    "trimByPsQuantile",
    "TTE_pipeline"
  ],
  "_datasets": [
    {
      "name": "demo_data",
      "title": "Example Dataset for Debiased Trial Emulation",
      "object": "demo_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "treatment",
        "eth_cat",
        "age_cat",
        "sex",
        "cohort_entry_month",
        "obese",
        "pmca_index",
        "n_ed",
        "n_inpatient",
        "n_outpatient",
        "n_tests",
        "n_dosage_cat",
        "imm_date_diff_grp",
        "medical_1",
        "medical_2",
        "medical_3",
        "medical_4",
        "medical_5",
        "visits_atrial_flutter",
        "visits_cardiac_arrest",
        "visits_chest_pain",
        "visits_heart_failure",
        "visits_hypertension",
        "event_atrial_flutter",
        "time_atrial_flutter",
        "event_cardiac_arrest",
        "time_cardiac_arrest",
        "event_chest_pain",
        "time_chest_pain",
        "event_heart_failure",
        "time_heart_failure",
        "event_hypertension",
        "time_hypertension",
        "nco_visits_lower_back_pain",
        "nco_visits_injury_of_head",
        "nco_visits_insect_bites",
        "nco_visits_falls",
        "nco_visits_wax_in_ear",
        "nco_visits_sleep_apnea",
        "nco_visits_speech_delay",
        "nco_visits_acne",
        "nco_visits_impetigo",
        "nco_visits_scoliosis",
        "nco_visits_concussion",
        "nco_visits_myopia",
        "nco_visits_astigmatism",
        "nco_visits_epilepsy",
        "nco_visits_seizure",
        "nco_visits_contact_dermatitis",
        "nco_visits_diaper_rash",
        "nco_visits_sprain_of_ankle",
        "nco_visits_injury_of_leg",
        "nco_visits_injury_of_foot",
        "nco_event_lower_back_pain",
        "nco_time_lower_back_pain",
        "nco_event_injury_of_head",
        "nco_time_injury_of_head",
        "nco_event_insect_bites",
        "nco_time_insect_bites",
        "nco_event_falls",
        "nco_time_falls",
        "nco_event_wax_in_ear",
        "nco_time_wax_in_ear",
        "nco_event_sleep_apnea",
        "nco_time_sleep_apnea",
        "nco_event_speech_delay",
        "nco_time_speech_delay",
        "nco_event_acne",
        "nco_time_acne",
        "nco_event_impetigo",
        "nco_time_impetigo",
        "nco_event_scoliosis",
        "nco_time_scoliosis",
        "nco_event_concussion",
        "nco_time_concussion",
        "nco_event_myopia",
        "nco_time_myopia",
        "nco_event_astigmatism",
        "nco_time_astigmatism",
        "nco_event_epilepsy",
        "nco_time_epilepsy",
        "nco_event_seizure",
        "nco_time_seizure",
        "nco_event_contact_dermatitis",
        "nco_time_contact_dermatitis",
        "nco_event_diaper_rash",
        "nco_time_diaper_rash",
        "nco_event_sprain_of_ankle",
        "nco_time_sprain_of_ankle",
        "nco_event_injury_of_leg",
        "nco_time_injury_of_leg",
        "nco_event_injury_of_foot",
        "nco_time_injury_of_foot"
      ],
      "rows": 10000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calibrate_TTE",
      "title": "Negative Control Calibration for Target Trial Emulation",
      "topics": [
        "calibrate_TTE"
      ]
    },
    {
      "page": "Compute_weight",
      "title": "Compute Weights for Stratification",
      "topics": [
        "Compute_weight"
      ]
    },
    {
      "page": "computePreferenceScore",
      "title": "Compute Preference Score",
      "topics": [
        "computePreferenceScore"
      ]
    },
    {
      "page": "computeWeights",
      "title": "Compute Propensity Score Weights",
      "topics": [
        "computeWeights"
      ]
    },
    {
      "page": "demo_data",
      "title": "Example Dataset for Debiased Trial Emulation",
      "topics": [
        "demo_data"
      ]
    },
    {
      "page": "propensity_score_methods",
      "title": "Estimate Treatment Effects using Propensity Score Matching",
      "topics": [
        "estEffect_matching",
        "estEffect_stratification",
        "estEffect_weighting"
      ]
    },
    {
      "page": "outcome_models",
      "title": "Estimate Odds Ratio (OR) after Propensity Score Matching",
      "topics": [
        "get_HR_matching",
        "get_HR_stratification",
        "get_HR_weighting",
        "get_OR_matching",
        "get_OR_stratification",
        "get_OR_weighting",
        "get_RR_matching",
        "get_RR_stratification",
        "get_RR_weighting"
      ]
    },
    {
      "page": "GetSMD",
      "title": "Compute Standardized Mean Differences (SMD)",
      "topics": [
        "GetSMD"
      ]
    },
    {
      "page": "dTTE_plotting",
      "title": "Plot Standardized Mean Differences (SMD) for Matching",
      "topics": [
        "plotCovariateBalanceOfTopVariables",
        "plotPs",
        "plot_Equipoise_matching",
        "plot_Equipoise_stratification",
        "plot_Equipoise_weighting",
        "plot_SMD_matching",
        "plot_SMD_stratification",
        "plot_SMD_weighting"
      ]
    },
    {
      "page": "plot.dTTE",
      "title": "Plot Method for dTTE Objects (Calibration Only)",
      "topics": [
        "plot.dTTE"
      ]
    },
    {
      "page": "plot.TTE",
      "title": "Plot Method for TTE Objects",
      "topics": [
        "plot.TTE"
      ]
    },
    {
      "page": "print.dTTE",
      "title": "Print Method for dTTE Objects",
      "topics": [
        "print.dTTE"
      ]
    },
    {
      "page": "print.TTE",
      "title": "Print Method for TTE Objects",
      "topics": [
        "print.TTE"
      ]
    },
    {
      "page": "stratifyByPs",
      "title": "Stratify Population by Propensity Score",
      "topics": [
        "stratifyByPs"
      ]
    },
    {
      "page": "summary.dTTE",
      "title": "Summary Method for dTTE Objects",
      "topics": [
        "summary.dTTE"
      ]
    },
    {
      "page": "summary.TTE",
      "title": "Summary Method for TTE Objects",
      "topics": [
        "summary.TTE"
      ]
    },
    {
      "page": "trimByPsQuantile",
      "title": "Trim Propensity Scores",
      "topics": [
        "trimByPsQuantile"
      ]
    },
    {
      "page": "TTE_pipeline",
      "title": "Target Trial Emulation (TTE) Pipeline",
      "topics": [
        "TTE_pipeline"
      ]
    }
  ],
  "_rundeps": [
    "arg",
    "boot",
    "cli",
    "cobalt",
    "codetools",
    "cpp11",
    "dplyr",
    "EmpiricalCalibration",
    "farver",
    "foreach",
    "geex",
    "generics",
    "ggplot2",
    "glmnet",
    "glue",
    "gridExtra",
    "gtable",
    "hms",
    "isoband",
    "iterators",
    "janitor",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lubridate",
    "magrittr",
    "MASS",
    "MatchIt",
    "Matrix",
    "memuse",
    "minqa",
    "nlme",
    "nloptr",
    "numDeriv",
    "ParallelLogger",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppProgress",
    "Rdpack",
    "reformulas",
    "rlang",
    "rootSolve",
    "rstudioapi",
    "S7",
    "scales",
    "shape",
    "snakecase",
    "snow",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xml2"
  ],
  "_score": 1,
  "_indexed": true,
  "_nocasepkg": "debiasedtrialemulation",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-09-27T07:44:45.000Z",
      "distro": "resolute",
      "commit": "bd76d4b542082dbc769e3c05f6d1454cdc1762a8",
      "fileid": "https://r2.ropensci.org/b9dbda169c850f8baee04ffee219b80b49d0e824a83352476925e01dd69e0e69",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36303728587"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-09-27T07:44:38.000Z",
      "distro": "resolute",
      "commit": "bd76d4b542082dbc769e3c05f6d1454cdc1762a8",
      "fileid": "https://r2.ropensci.org/a9d76b6351dab3429d5b5bb957a0adf7d95537814a2d56d90b00d26f33f74976",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36303728587"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-09-27T07:44:59.000Z",
      "commit": "bd76d4b542082dbc769e3c05f6d1454cdc1762a8",
      "fileid": "https://r2.ropensci.org/625ed88329f89402f4ae4f369e082d7abf8320772cf110989a85e81540b15f3c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36303728587"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-09-27T07:43:45.000Z",
      "commit": "bd76d4b542082dbc769e3c05f6d1454cdc1762a8",
      "fileid": "https://r2.ropensci.org/c01dbdb4d9108bb37f52b3877e32577d7a436855b1adc4f4c0973db29c973fcb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36303728587"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-09-27T07:43:46.000Z",
      "commit": "bd76d4b542082dbc769e3c05f6d1454cdc1762a8",
      "fileid": "https://r2.ropensci.org/dd4fc7308f625b46136074b1027519cbf2b87b8197d1bd6c2bef47a29a252d07",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36303728587"
    }
  ]
}