{
  "_id": "6a1ef7a6b401979e734179a5",
  "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-05-19 06:08:07 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",
  "MD5sum": "a7ced4a9b89d06919e051cda00afcf58",
  "_user": "cran",
  "_type": "src",
  "_file": "debiasedTrialEmulation_0.1.2.tar.gz",
  "_fileid": "0a2ad21cfa127ed384ddbd22ec5ac17dc6923dbb3dd6592caa892d24b35659c0",
  "_filesize": 1905956,
  "_sha256": "0a2ad21cfa127ed384ddbd22ec5ac17dc6923dbb3dd6592caa892d24b35659c0",
  "_created": "2026-05-19T06:08:07.000Z",
  "_published": "2026-06-02T15:32:54.283Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79109063911,
      "time": 150,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7076104738"
    },
    {
      "job": 79109064819,
      "time": 159,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7076107140"
    },
    {
      "job": 79109062547,
      "time": 188,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7076069579"
    },
    {
      "job": 79109062314,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7362370610"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26079470748",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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"
  },
  "_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": "2025-21",
      "n": 1
    },
    {
      "week": "2026-12",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2025-05-23"
    },
    {
      "name": "0.1.2",
      "date": "2026-03-20"
    }
  ],
  "_stars": 1,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 259,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/debiasedTrialEmulation"
  },
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/debiasedTrialEmulation.html",
    "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": [
    "backports",
    "boot",
    "chk",
    "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.3010299956639813,
  "_indexed": true,
  "_nocasepkg": "debiasedtrialemulation",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-19T06:10:12.000Z",
      "distro": "noble",
      "commit": "bd76d4b542082dbc769e3c05f6d1454cdc1762a8",
      "fileid": "c2e44c537ec20b210ca2b2090a712dd471d831b01d9cbca8d4418352ac8efd2d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26079470748"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-19T06:10:21.000Z",
      "distro": "noble",
      "commit": "bd76d4b542082dbc769e3c05f6d1454cdc1762a8",
      "fileid": "018bcb040f02f2c805642650db473d77ea02f9c0464fb04ccdafc98d17394efa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26079470748"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-06-02T15:32:37.000Z",
      "commit": "bd76d4b542082dbc769e3c05f6d1454cdc1762a8",
      "fileid": "b72bcb980800219bfd2d941ff63f8611ef698b1500de1b9f3d4ddb076a22a989",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26079470748"
    }
  ]
}