{
  "_id": "6ad1dff9d3c80a766859c3c3",
  "Package": "TrialSimulator",
  "Type": "Package",
  "Title": "Clinical Trial Simulator",
  "Version": "1.39.0",
  "Description": "Simulate phase II and/or phase III clinical trials. It\nsupports various types of endpoints and adaptive strategies.\nTools for carrying out graphical testing procedure and\ncombination test under group sequential design are also\nprovided.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Authors@R": "person(\"Han\", \"Zhang\", , \"zhangh.ustc@gmail.com\", role = c(\"cre\", \"aut\"))",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "URL": "https://zhangh12.github.io/TrialSimulator/",
  "BugReports": "https://github.com/zhangh12/TrialSimulator/issues",
  "Config/testthat/edition": "3",
  "Repository": "https://zhangh12.r-universe.dev",
  "Date/Publication": "2026-10-16 02:47:33 UTC",
  "RemoteUrl": "https://github.com/zhangh12/trialsimulator",
  "RemoteRef": "HEAD",
  "RemoteSha": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-16 07:40:29 UTC",
    "User": "root"
  },
  "Author": "Han Zhang [cre, aut]",
  "Maintainer": "Han Zhang <zhangh.ustc@gmail.com>",
  "_user": "zhangh12",
  "_type": "src",
  "_file": "TrialSimulator_1.39.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/71b02618e22916fbe96e175f98438565aff5e318c869594b4c085e123dee93eb",
  "_filesize": 6064463,
  "_sha256": "71b02618e22916fbe96e175f98438565aff5e318c869594b4c085e123dee93eb",
  "_expires": "2027-01-24T08:27:35.000Z",
  "_created": "2026-10-16T07:40:29.000Z",
  "_published": "2026-10-16T08:27:37.671Z",
  "_buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116867716724,
      "time": 194,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12032357938"
    },
    {
      "job": 116867716869,
      "time": 240,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12032930111"
    },
    {
      "job": 116867716738,
      "time": 240,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12032785317"
    },
    {
      "job": 116867716772,
      "time": 235,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12032188781"
    },
    {
      "job": 116867716871,
      "time": 213,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12034348526"
    },
    {
      "job": 116867716801,
      "time": 394,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12034511070"
    },
    {
      "job": 116867716745,
      "time": 222,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12034027438"
    },
    {
      "job": 116867717029,
      "time": 530,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12034930725"
    },
    {
      "job": 116865312414,
      "time": 366,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12032058829"
    },
    {
      "job": 116867716806,
      "time": 131,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12032054130"
    },
    {
      "job": 116867716742,
      "time": 350,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12032313667"
    },
    {
      "job": 116867717049,
      "time": 196,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12032625502"
    },
    {
      "job": 116867716864,
      "time": 194,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12031949863"
    },
    {
      "job": 116867716723,
      "time": 286,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12031669635"
    },
    {
      "job": 116867716815,
      "time": 222,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12032258537"
    }
  ],
  "_upstream": "https://github.com/zhangh12/trialsimulator",
  "_commit": {
    "id": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
    "author": "Han Zhang <zhangh.ustc@gmail.com>",
    "committer": "Han Zhang <zhangh.ustc@gmail.com>",
    "message": "Add Talks menu and README link to the short course slides\n",
    "time": 1792118853
  },
  "_maintainer": {
    "name": "Han Zhang",
    "email": "zhangh.ustc@gmail.com",
    "login": "zhangh12",
    "description": "",
    "uuid": 7952833
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "base64enc",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "emmeans",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "gMCPLite",
      "role": "Imports"
    },
    {
      "package": "htmltools",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "rpact",
      "role": "Imports"
    },
    {
      "package": "rstudioapi",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Suggests"
    },
    {
      "package": "DoseFinding",
      "role": "Suggests"
    },
    {
      "package": "gsDesign",
      "role": "Suggests"
    },
    {
      "package": "kableExtra",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "mirai",
      "role": "Suggests"
    },
    {
      "package": "PWEALL",
      "role": "Suggests"
    },
    {
      "package": "PWEXP",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "simdata",
      "role": "Suggests"
    },
    {
      "package": "survminer",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "zhangh12",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-42",
      "n": 3
    },
    {
      "week": "2025-43",
      "n": 1
    },
    {
      "week": "2025-46",
      "n": 7
    },
    {
      "week": "2026-07",
      "n": 2
    },
    {
      "week": "2026-09",
      "n": 2
    },
    {
      "week": "2026-12",
      "n": 4
    },
    {
      "week": "2026-13",
      "n": 2
    },
    {
      "week": "2026-14",
      "n": 2
    },
    {
      "week": "2026-15",
      "n": 4
    },
    {
      "week": "2026-16",
      "n": 2
    },
    {
      "week": "2026-17",
      "n": 13
    },
    {
      "week": "2026-18",
      "n": 2
    },
    {
      "week": "2026-19",
      "n": 6
    },
    {
      "week": "2026-20",
      "n": 1
    },
    {
      "week": "2026-24",
      "n": 4
    },
    {
      "week": "2026-25",
      "n": 2
    },
    {
      "week": "2026-26",
      "n": 3
    },
    {
      "week": "2026-28",
      "n": 1
    },
    {
      "week": "2026-30",
      "n": 11
    },
    {
      "week": "2026-31",
      "n": 2
    },
    {
      "week": "2026-36",
      "n": 29
    },
    {
      "week": "2026-37",
      "n": 4
    },
    {
      "week": "2026-41",
      "n": 4
    },
    {
      "week": "2026-42",
      "n": 3
    }
  ],
  "_tags": [
    {
      "name": "v1.16.0",
      "date": "2026-04-13"
    },
    {
      "name": "v1.24.0",
      "date": "2026-07-08"
    },
    {
      "name": "v1.25.0",
      "date": "2026-07-22"
    },
    {
      "name": "v1.26.0",
      "date": "2026-07-23"
    },
    {
      "name": "v1.26.1",
      "date": "2026-07-23"
    },
    {
      "name": "v1.26.2",
      "date": "2026-07-23"
    },
    {
      "name": "v1.27.0",
      "date": "2026-07-25"
    },
    {
      "name": "v1.28.0",
      "date": "2026-07-25"
    },
    {
      "name": "v1.28.1",
      "date": "2026-07-25"
    },
    {
      "name": "v1.29.0",
      "date": "2026-07-26"
    },
    {
      "name": "v1.30.0",
      "date": "2026-07-26"
    },
    {
      "name": "v1.30.1",
      "date": "2026-07-26"
    },
    {
      "name": "v1.31.0",
      "date": "2026-07-27"
    },
    {
      "name": "v1.32.0",
      "date": "2026-07-27"
    },
    {
      "name": "v1.33.0",
      "date": "2026-08-31"
    },
    {
      "name": "v1.33.1",
      "date": "2026-08-31"
    },
    {
      "name": "v1.34.0",
      "date": "2026-09-01"
    },
    {
      "name": "v1.34.1",
      "date": "2026-09-02"
    },
    {
      "name": "v1.35.0",
      "date": "2026-09-03"
    },
    {
      "name": "v1.35.1",
      "date": "2026-09-03"
    },
    {
      "name": "v1.35.2",
      "date": "2026-09-03"
    },
    {
      "name": "v1.35.3",
      "date": "2026-09-03"
    },
    {
      "name": "v1.35.4",
      "date": "2026-09-03"
    },
    {
      "name": "v1.35.5",
      "date": "2026-09-04"
    },
    {
      "name": "v1.35.6",
      "date": "2026-09-04"
    },
    {
      "name": "v1.35.7",
      "date": "2026-09-04"
    },
    {
      "name": "v1.35.8",
      "date": "2026-09-04"
    },
    {
      "name": "v1.36.0",
      "date": "2026-09-06"
    },
    {
      "name": "v1.36.1",
      "date": "2026-09-08"
    },
    {
      "name": "v1.37.0",
      "date": "2026-09-08"
    },
    {
      "name": "v1.37.1",
      "date": "2026-09-08"
    },
    {
      "name": "v1.38.0",
      "date": "2026-10-05"
    },
    {
      "name": "v1.38.1",
      "date": "2026-10-05"
    },
    {
      "name": "v1.38.2",
      "date": "2026-10-09"
    },
    {
      "name": "v1.39.0",
      "date": "2026-10-09"
    }
  ],
  "_stars": 8,
  "_contributors": [
    {
      "user": "zhangh12",
      "count": 427,
      "uuid": 7952833
    }
  ],
  "_userbio": {
    "uuid": 7952833,
    "type": "user",
    "name": "Han Zhang",
    "followers": 17
  },
  "_downloads": {
    "count": 519,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/TrialSimulator"
  },
  "_devurl": "https://github.com/zhangh12/trialsimulator",
  "_pkgdown": "https://zhangh12.github.io/TrialSimulator/",
  "_searchresults": 46,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_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/TrialSimulator.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/zhangh12/trialsimulator",
  "_realowner": "zhangh12",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2025-09-03"
    },
    {
      "version": "1.3.0",
      "date": "2025-09-26"
    },
    {
      "version": "1.7.0",
      "date": "2025-12-19"
    },
    {
      "version": "1.10.0",
      "date": "2026-02-16"
    },
    {
      "version": "1.10.1",
      "date": "2026-02-16"
    },
    {
      "version": "1.16.0",
      "date": "2026-04-13"
    },
    {
      "version": "1.17.1",
      "date": "2026-04-27"
    },
    {
      "version": "1.18.4",
      "date": "2026-05-13"
    },
    {
      "version": "1.20.1",
      "date": "2026-06-15"
    },
    {
      "version": "1.35.8",
      "date": "2026-09-08"
    },
    {
      "version": "1.39.0",
      "date": "2026-10-10"
    }
  ],
  "_exports": [
    "add_arms",
    "arm",
    "Arms",
    "calendarTime",
    "controller",
    "Controllers",
    "CorrelatedPfsAndOs2",
    "CorrelatedPfsAndOs3",
    "CorrelatedPfsAndOs4",
    "crossover",
    "doNothing",
    "DynamicRNGFunction",
    "endpoint",
    "Endpoints",
    "enrollment",
    "eventNumber",
    "expandRegimen",
    "fitCoxph",
    "fitFarringtonManning",
    "fitLinear",
    "fitLogistic",
    "fitLogrank",
    "GraphicalTesting",
    "GroupSequentialTest",
    "listener",
    "Listeners",
    "milestone",
    "Milestones",
    "PiecewiseConstantExponentialRNG",
    "qPiecewiseExponential",
    "rconst",
    "regimen",
    "Regimens",
    "remove_arms",
    "resize",
    "solveMixtureExponentialDistribution",
    "solvePiecewiseConstantExponentialDistribution",
    "solveThreeStateModel",
    "StaggeredRecruiter",
    "stop_followup",
    "strata",
    "summarizeDataFrame",
    "summarizeMilestoneTime",
    "Surv",
    "trial",
    "Trials",
    "update_accrual_rate",
    "update_generator",
    "update_milestone",
    "update_sample_ratio",
    "weibullDropout"
  ],
  "_help": [
    {
      "page": "add_arms",
      "title": "Adding One or More Arms to a Trial",
      "topics": [
        "add_arms"
      ]
    },
    {
      "page": "arm",
      "title": "Define an Arm",
      "topics": [
        "arm"
      ]
    },
    {
      "page": "Arms",
      "title": "Class of Arm",
      "topics": [
        "Arms"
      ]
    },
    {
      "page": "calendarTime",
      "title": "Triggering Condition by Calendar Time",
      "topics": [
        "calendarTime"
      ]
    },
    {
      "page": "controller",
      "title": "Define a Controller",
      "topics": [
        "controller"
      ]
    },
    {
      "page": "Controllers",
      "title": "Class of Controller",
      "topics": [
        "Controllers"
      ]
    },
    {
      "page": "CorrelatedPfsAndOs2",
      "title": "Generate Correlated PFS and OS Using Gumbel Copula",
      "topics": [
        "CorrelatedPfsAndOs2"
      ]
    },
    {
      "page": "CorrelatedPfsAndOs3",
      "title": "Generate Correlated PFS and OS Using the Three-States Illness-Death Model",
      "topics": [
        "CorrelatedPfsAndOs3"
      ]
    },
    {
      "page": "CorrelatedPfsAndOs4",
      "title": "Generate Correlated PFS, OS and Objective Response",
      "topics": [
        "CorrelatedPfsAndOs4"
      ]
    },
    {
      "page": "crossover",
      "title": "Crossover at a Milestone",
      "topics": [
        "crossover"
      ]
    },
    {
      "page": "doNothing",
      "title": "An Action Function that Does Nothing",
      "topics": [
        "doNothing"
      ]
    },
    {
      "page": "DynamicRNGFunction",
      "title": "A wrapper of random number generator.",
      "topics": [
        "DynamicRNGFunction"
      ]
    },
    {
      "page": "endpoint",
      "title": "Define Endpoints",
      "topics": [
        "endpoint"
      ]
    },
    {
      "page": "Endpoints",
      "title": "Class of Endpoint",
      "topics": [
        "Endpoints"
      ]
    },
    {
      "page": "enrollment",
      "title": "Triggering Condition by Number of Randomized Patients",
      "topics": [
        "enrollment"
      ]
    },
    {
      "page": "eventNumber",
      "title": "Triggering Condition by Number of Events or Non-missing Observations of an Endpoint",
      "topics": [
        "eventNumber"
      ]
    },
    {
      "page": "expandRegimen",
      "title": "Expand regimen trajectory into long format",
      "topics": [
        "expandRegimen"
      ]
    },
    {
      "page": "fitCoxph",
      "title": "Fit Cox Proportional Hazard Ratio model",
      "topics": [
        "fitCoxph"
      ]
    },
    {
      "page": "fitFarringtonManning",
      "title": "Farrington-Manning test for rate difference",
      "topics": [
        "fitFarringtonManning"
      ]
    },
    {
      "page": "fitLinear",
      "title": "Fit linear regression model",
      "topics": [
        "fitLinear"
      ]
    },
    {
      "page": "fitLogistic",
      "title": "Fit logistic regression model",
      "topics": [
        "fitLogistic"
      ]
    },
    {
      "page": "fitLogrank",
      "title": "Carry out log rank test",
      "topics": [
        "fitLogrank"
      ]
    },
    {
      "page": "getAdaptiveDesignOutput",
      "title": "Get simulation output in the vignette adaptiveDesign.Rmd",
      "topics": [
        "getAdaptiveDesignOutput"
      ]
    },
    {
      "page": "getConditionalPowerOutput",
      "title": "Get simulation output in the vignette conditionalPower.Rmd",
      "topics": [
        "getConditionalPowerOutput"
      ]
    },
    {
      "page": "getDoseRangingOutput",
      "title": "Get simulation output in the vignette doseRanging.Rmd",
      "topics": [
        "getDoseRangingOutput"
      ]
    },
    {
      "page": "getEnrichmentDesignOutput",
      "title": "Get simulation output in the vignette enrichmentDesign.Rmd",
      "topics": [
        "getEnrichmentDesignOutput"
      ]
    },
    {
      "page": "getFixedDesignOutput",
      "title": "Get simulation output in the vignette fixedDesign.Rmd",
      "topics": [
        "getFixedDesignOutput"
      ]
    },
    {
      "page": "GraphicalTesting",
      "title": "Class of GraphicalTesting",
      "topics": [
        "GraphicalTesting"
      ]
    },
    {
      "page": "GroupSequentialTest",
      "title": "Class of GroupSequentialTest",
      "topics": [
        "GroupSequentialTest"
      ]
    },
    {
      "page": "listener",
      "title": "Define a Listener",
      "topics": [
        "listener"
      ]
    },
    {
      "page": "Listeners",
      "title": "Class of Listener",
      "topics": [
        "Listeners"
      ]
    },
    {
      "page": "milestone",
      "title": "Define a Milestone",
      "topics": [
        "milestone"
      ]
    },
    {
      "page": "Milestones",
      "title": "Class of Milestones",
      "topics": [
        "Milestones"
      ]
    },
    {
      "page": "PiecewiseConstantExponentialRNG",
      "title": "Generate Time-to-Event Endpoint from Piecewise Constant Exponential Distribution",
      "topics": [
        "PiecewiseConstantExponentialRNG"
      ]
    },
    {
      "page": "plot.milestone_time_summary",
      "title": "Plot Triggering Time of Milestones in Simulated Trials",
      "topics": [
        "plot.milestone_time_summary"
      ]
    },
    {
      "page": "plot.three_state_model",
      "title": "Plot result of three-state illness-death model",
      "topics": [
        "plot.three_state_model"
      ]
    },
    {
      "page": "qPiecewiseExponential",
      "title": "Quantile Function of Piecewise Exponential Distribution",
      "topics": [
        "qPiecewiseExponential"
      ]
    },
    {
      "page": "rconst",
      "title": "Generate Constant Variable",
      "topics": [
        "rconst"
      ]
    },
    {
      "page": "regimen",
      "title": "Define a Regimen",
      "topics": [
        "regimen"
      ]
    },
    {
      "page": "Regimens",
      "title": "Class of Regimens",
      "topics": [
        "Regimens"
      ]
    },
    {
      "page": "remove_arms",
      "title": "Removing One or More Arms From a Trial",
      "topics": [
        "remove_arms"
      ]
    },
    {
      "page": "resize",
      "title": "Resizing a Trial",
      "topics": [
        "resize"
      ]
    },
    {
      "page": "solveMixtureExponentialDistribution",
      "title": "Solve Parameters in a Mixture Exponential Distribution",
      "topics": [
        "solveMixtureExponentialDistribution"
      ]
    },
    {
      "page": "solvePiecewiseConstantExponentialDistribution",
      "title": "Compute Constant Rates of Piecewise Exponential Distribution",
      "topics": [
        "solvePiecewiseConstantExponentialDistribution"
      ]
    },
    {
      "page": "solveThreeStateModel",
      "title": "Solve Parameters in a Three-State Illness-death Model",
      "topics": [
        "solveThreeStateModel"
      ]
    },
    {
      "page": "StaggeredRecruiter",
      "title": "Generate Enrollment Time from Piecewise Constant Uniform Distribution",
      "topics": [
        "StaggeredRecruiter"
      ]
    },
    {
      "page": "stop_followup",
      "title": "Stopping Follow-Up of Selected Patients in a Trial",
      "topics": [
        "stop_followup"
      ]
    },
    {
      "page": "summarizeDataFrame",
      "title": "Summarize A Data Frame",
      "topics": [
        "summarizeDataFrame"
      ]
    },
    {
      "page": "summarizeMilestoneTime",
      "title": "Summary of Milestone Time from Simulated Trials",
      "topics": [
        "summarizeMilestoneTime"
      ]
    },
    {
      "page": "trial",
      "title": "Define a Trial",
      "topics": [
        "trial"
      ]
    },
    {
      "page": "Trials",
      "title": "Class of Trial",
      "topics": [
        "Trials"
      ]
    },
    {
      "page": "update_accrual_rate",
      "title": "Updating the Accrual Rate of a Trial at a Milestone",
      "topics": [
        "update_accrual_rate"
      ]
    },
    {
      "page": "update_generator",
      "title": "Updating Data Generators of One or More Endpoints in an Arm",
      "topics": [
        "update_generator"
      ]
    },
    {
      "page": "update_milestone",
      "title": "Updating a Not-Yet-Triggered Milestone of a Trial",
      "topics": [
        "update_milestone"
      ]
    },
    {
      "page": "update_sample_ratio",
      "title": "Updating Sampling Ratios of Existing Arms in a Trial",
      "topics": [
        "update_sample_ratio"
      ]
    },
    {
      "page": "weibullDropout",
      "title": "Calculate Parameters of Weibull Distribution as a Dropout Method",
      "topics": [
        "weibullDropout"
      ]
    }
  ],
  "_pkglogo": "https://github.com/zhangh12/trialsimulator/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/zhangh12/trialsimulator/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "cli",
    "cpp11",
    "digest",
    "dplyr",
    "emmeans",
    "estimability",
    "evaluate",
    "farver",
    "fastmap",
    "generics",
    "ggplot2",
    "glue",
    "gMCPLite",
    "gtable",
    "highr",
    "htmltools",
    "isoband",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "mvtnorm",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "rpact",
    "rstudioapi",
    "S7",
    "scales",
    "survival",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "yaml"
  ],
  "_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": "fixedDesign.Rmd",
      "filename": "fixedDesign.html",
      "title": "An Example of Fixed Design with Two Correlated Endpoints",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulation Settings",
        "Transition Hazards of PFS and OS",
        "Define Treatment Arms",
        "Define a Trial",
        "Define Milestone and Action for Final Analysis"
      ],
      "created": "2025-08-05 02:34:25",
      "modified": "2026-09-06 06:27:47",
      "commits": 10
    },
    {
      "source": "adaptiveDesign.Rmd",
      "filename": "adaptiveDesign.html",
      "title": "An Example of Simulating a Trial with Adaptive Design",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulation Settings",
        "Define Three Arms",
        "Define a Trial",
        "Define Trial Milestones and Action Functions",
        "Execute a Trial",
        "Execute Trial Simulation"
      ],
      "created": "2024-11-27 09:29:43",
      "modified": "2026-09-08 05:30:29",
      "commits": 39
    },
    {
      "source": "enrichmentDesign.Rmd",
      "filename": "enrichmentDesign.html",
      "title": "An Example of Simulating a Trial with Adaptive Enrichment Design",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulation Settings",
        "Define Two Arms",
        "Define a Trial",
        "Define Trial Milestones and Action Functions",
        "Interim decision",
        "Stage 1 analysis",
        "Final analysis",
        "Execute a Trial",
        "Execute Trial Simulation"
      ],
      "created": "2026-10-09 16:32:55",
      "modified": "2026-10-09 16:32:55",
      "commits": 1
    },
    {
      "source": "conditionSystem.Rmd",
      "filename": "conditionSystem.html",
      "title": "Condition System for Triggering Milestones in a Trial",
      "engine": "knitr::rmarkdown",
      "headings": [
        "A trial has been running for 6 months",
        "At least 520 patients have been enrolled",
        "At least 400 patients have been enrolled, and each has received a minimum of 3 weeks of treatment",
        "At least 340 PFS events are observed",
        "Other examples"
      ],
      "created": "2025-03-21 03:51:01",
      "modified": "2025-09-17 04:34:25",
      "commits": 8
    },
    {
      "source": "conditionalPower.Rmd",
      "filename": "conditionalPower.html",
      "title": "Conditional Power and Event-Number Reassessment",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Statistical setting",
        "What alpha means",
        "Conditional power",
        "A specified hazard ratio",
        "The interim trend",
        "The null effect",
        "What happens near the interim",
        "Inverting conditional power to obtain an event number",
        "Why ordinary bisection is insufficient",
        "Integer search algorithm",
        "An example with three target crossings",
        "Worked TrialSimulator example",
        "Conditional power under different assumptions",
        "Event-number reassessment and the cap",
        "A promising-zone policy",
        "Implementing the policy in an action function",
        "Assumptions and design checks",
        "A complete promising-zone simulation",
        "Multiple treatment arms",
        "References"
      ],
      "created": "2026-08-31 19:51:26",
      "modified": "2026-09-06 06:27:47",
      "commits": 14
    },
    {
      "source": "crossoverAtMilestone.Rmd",
      "filename": "crossoverAtMilestone.html",
      "title": "Crossover at a Milestone",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Where crossover() is called",
        "The earliest crossover time: delay and the opening time",
        "How the eligible population is determined",
        "How the package monitors the triplet's output",
        "Developing the triplet",
        "A worked example",
        "Scenarios",
        "Relationship to add_regimen()",
        "Inspecting the switches"
      ],
      "created": "2026-06-11 03:24:17",
      "modified": "2026-09-06 06:27:47",
      "commits": 2
    },
    {
      "source": "crossoverWashout.Rmd",
      "filename": "crossoverWashout.html",
      "title": "Crossover Design with Wash-out Periods",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulation Settings",
        "Define Endpoints in Four Arms",
        "Define a Trial",
        "Define Milestone and Action",
        "Execute a Trial"
      ],
      "created": "2026-03-16 21:09:58",
      "modified": "2026-09-06 06:27:47",
      "commits": 5
    },
    {
      "source": "defineArms.Rmd",
      "filename": "defineArms.html",
      "title": "Define and Summarize Arms in Clinical Trials",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Define Arm with Mulitple Sets of Endpoints",
        "Add Inclusion Criteria for the Arm",
        "Simulate Data Explicitly (Not Recommended)"
      ],
      "created": "2025-07-09 03:53:23",
      "modified": "2026-04-23 00:24:06",
      "commits": 3
    },
    {
      "source": "defineLongitudinalEndpoints.Rmd",
      "filename": "defineLongitudinalEndpoints.html",
      "title": "Define Longitudinal Endpoints",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Example: Simulating Longitudinal Blood Pressure Endpoints",
        "Defining Endpoints for an Arm",
        "Defining Endpoints for Another Arm",
        "Creating Treatment Arms and Adding Endpoints"
      ],
      "created": "2025-06-07 03:43:44",
      "modified": "2025-09-27 14:41:53",
      "commits": 5
    },
    {
      "source": "defineNonTimeToEventEndpoints.Rmd",
      "filename": "defineNonTimeToEventEndpoints.html",
      "title": "Define Non-Time-to-Event Endpoints",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Define endpoints with random number generators",
        "Baseline endpoints"
      ],
      "created": "2025-03-19 06:35:56",
      "modified": "2026-09-06 06:27:47",
      "commits": 16
    },
    {
      "source": "defineTimeToEventEndpoints.Rmd",
      "filename": "defineTimeToEventEndpoints.html",
      "title": "Define Time-to-Event Endpoints",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Define a univariate endpoint with random number generators from stats",
        "Define a univariate endpoint with custom random number generators",
        "Define multiple endpoints",
        "An example of a custom random number generator for correlated endpoints"
      ],
      "created": "2025-03-16 04:47:59",
      "modified": "2025-09-17 01:08:13",
      "commits": 10
    },
    {
      "source": "responseAdaptive.Rmd",
      "filename": "responseAdaptive.html",
      "title": "Designs with Response-Adaptive Randomization",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulation Settings",
        "Define Data Generator of fev1",
        "Define fev1 Endpoints for Each Arm",
        "Define a Trial",
        "Define Milestones and Associated Actions",
        "Execute a Trial",
        "Appendix: Codes of Helper Functions"
      ],
      "created": "2025-08-09 01:53:07",
      "modified": "2026-09-06 06:27:47",
      "commits": 12
    },
    {
      "source": "doseRanging.Rmd",
      "filename": "doseRanging.html",
      "title": "Dose-Ranging Study",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulation Settings",
        "Define Placebo and High Dose Arms",
        "Define a Trial",
        "Define Milestones and Actions",
        "Execute a Trial",
        "Appendix: Code of Helper Function"
      ],
      "created": "2025-09-27 05:07:16",
      "modified": "2026-09-06 06:27:47",
      "commits": 9
    },
    {
      "source": "simulatePfsAndOsIdm.Rmd",
      "filename": "simulatePfsAndOsIdm.html",
      "title": "Simulate Correlated Progression-Free Survival and Overall Survival as Endpoints Under Illness-Death Model",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Reparameterization",
        "Example",
        "Further Discussion"
      ],
      "created": "2026-04-23 00:24:06",
      "modified": "2026-04-23 00:24:06",
      "commits": 1
    },
    {
      "source": "simulatePfsAndOsGumbel.Rmd",
      "filename": "simulatePfsAndOsGumbel.html",
      "title": "Simulate Correlated Progression-Free Survival and Overall Survival Using a Gumbel Copula",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Model",
        "$$\\Pr(X > x, Y > y)",
        "$$\\Pr(P > t)",
        "\\Pr(X > t, Y > t)",
        "\\exp\\left[-\\left{(\\lambda_X^\\theta + \\lambda_Y^\\theta)t^\\theta\\right}^{1/\\theta}\\right]",
        "Choosing the Copula Parameter",
        "$$\\tau(P,Y)",
        "$$\\tau(P,Y)-\\tau(X,Y)",
        "Example",
        "Practical Guidance",
        "Appendix: Kendall's Tau for Observed PFS and OS",
        "$$S_{X,Y}(x,y)",
        "\\Pr(X>x, Y>y)",
        "$$\\Pr(A>a, B>b)",
        "$$S_{P,Y}(Y,Y)",
        "$$E",
        "$$L_R(s)",
        "\\frac{1}{\\theta}\\int_0^\\infty e^{-(1+s)r}(r+\\theta-1),dr",
        "$$\\int_c^1L_R\\left{\\left(\\frac{1-w}{d}\\right)^{1/\\theta}\\right}dw",
        "$$\\frac{d}{dt}\\left(\\frac{t^\\theta}{1+t}\\right)",
        "$$d\\left[\\frac{t^\\theta}{1+t}\\right]_0^1",
        "c\\frac",
        "4E{S_{P,Y}(P,Y)}-1",
        "\\frac",
        "1-\\frac{1}{\\theta}\\left(\\frac{\\lambda_X^\\theta}{\\lambda_P^\\theta}\\right)"
      ],
      "created": "2026-04-23 00:24:06",
      "modified": "2026-05-08 19:04:31",
      "commits": 3
    },
    {
      "source": "dynamicTreatmentSwitching.Rmd",
      "filename": "dynamicTreatmentSwitching.html",
      "title": "Simulate Trials with Dynamic Treatment Switching",
      "engine": "knitr::rmarkdown",
      "headings": [
        "A Common Structure",
        "Why regimen uses three functions?",
        "The Role of what()",
        "The Role of when()",
        "The Role of how()",
        "Implement Dynamic Treatment Switching",
        "Example 1: Crossover after progression",
        "Example 2: Crossover for non-responsers",
        "Example 3: Crossover when condition deteriorates",
        "Example 4: Crossover multiple times"
      ],
      "created": "2026-03-18 06:45:45",
      "modified": "2026-06-11 03:24:17",
      "commits": 6
    },
    {
      "source": "actionFunctions.Rmd",
      "filename": "actionFunctions.html",
      "title": "Specify Actions to Execute at Trial Milestones",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Define Trial Milestones",
        "Custom Action Functions",
        "Perform statistical analyses on data snapshot",
        "Save intermediate results",
        "Example 1: saving hazard ratio and p-value",
        "Example 2: passing complex objects between milestones",
        "Example 3: defining global data of a trial",
        "Example 4: carrying a testing procedure object across milestones",
        "Alter a trial via adaptation"
      ],
      "created": "2025-07-28 07:03:35",
      "modified": "2026-10-05 21:58:12",
      "commits": 21
    },
    {
      "source": "wrappers.Rmd",
      "filename": "wrappers.html",
      "title": "Wrapper Functions of Common Statistical Methods in TrialSimulator",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Example",
        "Analyze Time-to-Event Endpoint",
        "Analyze Continuous Endpoint",
        "Analyze Binary Endpoint"
      ],
      "created": "2025-08-05 02:55:19",
      "modified": "2026-09-06 06:27:47",
      "commits": 3
    }
  ],
  "_score": 7.900301569824448,
  "_indexed": true,
  "_nocasepkg": "trialsimulator",
  "_universes": [
    "zhangh12"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.39.0",
      "date": "2026-10-16T07:42:59.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
      "fileid": "https://r2.ropensci.org/ab424080c0f7d0085dece999b501551184baf919bf9ac2cc3078783ec6640956",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.39.0",
      "date": "2026-10-16T07:43:22.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
      "fileid": "https://r2.ropensci.org/d42195c0530a369d2c6226aff2a701e14bd4a841ec076ac8cfd177bd417d943e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.39.0",
      "date": "2026-10-16T07:43:41.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
      "fileid": "https://r2.ropensci.org/d3bc3fc8eb43c996ab710fc0f7a4531f6afec368a4363cc9a362b92f1fdda560",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.39.0",
      "date": "2026-10-16T07:43:17.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
      "fileid": "https://r2.ropensci.org/d160678ce26e4edff27abfe644f487ef0d646f4e39f0cecd6ff24fef39e62165",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.39.0",
      "date": "2026-10-16T08:25:31.000Z",
      "arch": "aarch64",
      "commit": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
      "fileid": "https://r2.ropensci.org/bae0619a221b9b1117cd8a1d1d592c560c798b70e7224e3e447808262b4675cf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.39.0",
      "date": "2026-10-16T08:18:06.000Z",
      "arch": "x86_64",
      "commit": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
      "fileid": "https://r2.ropensci.org/3bf0828ddc2f25ca75f29eb6563343a11b0ed11e1e0a0a659266d40178fb0b91",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.39.0",
      "date": "2026-10-16T08:21:47.000Z",
      "arch": "aarch64",
      "commit": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
      "fileid": "https://r2.ropensci.org/ea27371906ce0847aef384fad2565a5441b1c8352acb1996072587d0e8406428",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.39.0",
      "date": "2026-10-16T08:20:07.000Z",
      "arch": "x86_64",
      "commit": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
      "fileid": "https://r2.ropensci.org/e9b63e8a2313534a02e3581e59e0da268a3000dedec99f79724ed1764411361f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.39.0",
      "date": "2026-10-16T07:43:17.000Z",
      "arch": "emscripten",
      "commit": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
      "fileid": "https://r2.ropensci.org/112ca2fc5149d25dad1406302bb8837222019f779fc9da8e65b7368197ce5404",
      "status": "success",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.39.0",
      "date": "2026-10-16T07:44:46.000Z",
      "arch": "aarch64",
      "commit": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
      "fileid": "https://r2.ropensci.org/81820c9a3143c08d620294710fe2d5baa12496973a9b516cbce4f27c5caf9b46",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.39.0",
      "date": "2026-10-16T07:42:07.000Z",
      "arch": "x86_64",
      "commit": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
      "fileid": "https://r2.ropensci.org/1734f20b98ee48f0fd282ccacd8a310db42100c1d4e17085bd89e77678b7aa00",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.39.0",
      "date": "2026-10-16T07:42:16.000Z",
      "arch": "x86_64",
      "commit": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
      "fileid": "https://r2.ropensci.org/2a925787cb4b51ab2a147ff4fe746195d80a909490b50063bb2ec7d63ddf46b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.39.0",
      "date": "2026-10-16T07:43:55.000Z",
      "arch": "aarch64",
      "commit": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
      "fileid": "https://r2.ropensci.org/7e15856a37096e2a8765e000648faa1e3c3a6bb8ac0bc8e606dc143acadec87e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.39.0",
      "date": "2026-10-16T07:42:18.000Z",
      "arch": "x86_64",
      "commit": "89278155433cff9b7ea960ad2b7c9e48c83e1653",
      "fileid": "https://r2.ropensci.org/5a544fce9639ec99ad2c11cd4c1b16ace68d06eae4e31ef0f39772c23c43082f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/38867902785"
    }
  ]
}