{
  "_id": "6a27ca4c24555f66ed541cbb",
  "Package": "TrialSimulator",
  "Type": "Package",
  "Title": "Clinical Trial Simulator",
  "Version": "1.19.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-06-09 03:36:37 UTC",
  "RemoteUrl": "https://github.com/zhangh12/trialsimulator",
  "RemoteRef": "HEAD",
  "RemoteSha": "987035d84f5c8dd98846c02cfeecdc36f8fe73b9",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-09 07:58:19 UTC",
    "User": "root"
  },
  "Author": "Han Zhang [cre, aut]",
  "Maintainer": "Han Zhang <zhangh.ustc@gmail.com>",
  "MD5sum": "517d974684fbd6809cf2e2deaeb72866",
  "_user": "zhangh12",
  "_type": "src",
  "_file": "TrialSimulator_1.19.0.tar.gz",
  "_fileid": "ea7b7fcb963d51823f9d8b75ed5253b197d33708904a368e565aba61a5f2f72b",
  "_filesize": 4296898,
  "_sha256": "ea7b7fcb963d51823f9d8b75ed5253b197d33708904a368e565aba61a5f2f72b",
  "_created": "2026-06-09T07:58:19.000Z",
  "_published": "2026-06-09T08:09:48.227Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80275126242,
      "time": 219,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7501844669"
    },
    {
      "job": 80275126217,
      "time": 235,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7501848967"
    },
    {
      "job": 80275126317,
      "time": 263,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501859013"
    },
    {
      "job": 80275126233,
      "time": 244,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501851435"
    },
    {
      "job": 80275126218,
      "time": 153,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7501871957"
    },
    {
      "job": 80275126232,
      "time": 404,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7501909682"
    },
    {
      "job": 80275126251,
      "time": 143,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501984655"
    },
    {
      "job": 80275126301,
      "time": 311,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501878418"
    },
    {
      "job": 80274300131,
      "time": 310,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501770169"
    },
    {
      "job": 80275126166,
      "time": 162,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501824158"
    },
    {
      "job": 80275126174,
      "time": 197,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7501835890"
    },
    {
      "job": 80275126182,
      "time": 241,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7501851387"
    },
    {
      "job": 80275126186,
      "time": 209,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7501839598"
    }
  ],
  "_buildurl": "https://github.com/r-universe/zhangh12/actions/runs/27192010877",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/zhangh12/trialsimulator",
  "_commit": {
    "id": "987035d84f5c8dd98846c02cfeecdc36f8fe73b9",
    "author": "Han Zhang <zhangh.ustc@gmail.com>",
    "committer": "Han Zhang <zhangh.ustc@gmail.com>",
    "message": "feat: add milestone-triggered crossover() adaptation (bump 1.19.0)\n\nAdd `trial$crossover(what, how, when = NULL, delay = 0, ...)` and the\n`crossover(trial, ...)` wrapper for a crossover decided at a milestone: at the\nearliest crossover calendar time T = get_current_time() + delay, eligible\npatients still in the trial may switch treatment, and only their post-switch\nendpoint values are altered.\n\nUnify regimens under one contract: each triplet carries an\n`earliest_crossover_calendar_time` (0 = enrollment regimen, > 0 = crossover);\nT only shifts the reference time max(T, enroll) and the switch floor. A shared\nprivate apply_regimens() helper replaces the inline enroll_patients() regimen\nloop and is reused by crossover(). The same contract now applies to every\nregimen: eligibility (>=1 endpoint open at max(T, enroll), dropout-/duration-\naware), `enroll + switch >= T` validation, and a post-switch mask on how()\n(changing a pre-switch/already-observed cell is an error). Existing how()\nfunctions that rewrote pre-switch outcomes must now guard with\nifelse(... , new, original).\n\nSnapshot/reset: add_regimen() snapshots a pristine deep clone and reset_regimen()\nrestores a fresh clone (or NULL) from reset() and make_arms_snapshot(), so\ncrossover's in-run append does not accumulate across replicates.\n\nAlso: NEWS.md entry for 1.19.0; add .positai to .gitignore/.Rbuildignore.\n\nTests: tests/testthat/test-crossover.R; the test-regimen.R accel example updated\nto the post-switch idiom. Full suite green.\n",
    "time": 1780976197
  },
  "_maintainer": {
    "name": "Han Zhang",
    "email": "zhangh.ustc@gmail.com",
    "login": "zhangh12",
    "description": "",
    "uuid": 7952833
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "base64enc",
      "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": "graphicalMCP",
      "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-27",
      "n": 6
    },
    {
      "week": "2025-28",
      "n": 4
    },
    {
      "week": "2025-29",
      "n": 8
    },
    {
      "week": "2025-30",
      "n": 10
    },
    {
      "week": "2025-31",
      "n": 21
    },
    {
      "week": "2025-32",
      "n": 8
    },
    {
      "week": "2025-33",
      "n": 4
    },
    {
      "week": "2025-34",
      "n": 1
    },
    {
      "week": "2025-35",
      "n": 8
    },
    {
      "week": "2025-37",
      "n": 1
    },
    {
      "week": "2025-38",
      "n": 11
    },
    {
      "week": "2025-39",
      "n": 9
    },
    {
      "week": "2025-40",
      "n": 5
    },
    {
      "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": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.96.0",
      "date": "2025-08-28"
    },
    {
      "name": "v1.0.0",
      "date": "2025-08-29"
    },
    {
      "name": "v1.3.0",
      "date": "2025-09-27"
    },
    {
      "name": "pre-rewrite-backup",
      "date": "2025-09-30"
    },
    {
      "name": "v1.16.0",
      "date": "2026-04-13"
    }
  ],
  "_stars": 7,
  "_contributors": [
    {
      "user": "zhangh12",
      "count": 335,
      "uuid": 7952833
    }
  ],
  "_userbio": {
    "uuid": 7952833,
    "type": "user",
    "name": "Han Zhang"
  },
  "_downloads": {
    "count": 606,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/TrialSimulator"
  },
  "_devurl": "https://github.com/zhangh12/trialsimulator",
  "_pkgdown": "https://zhangh12.github.io/TrialSimulator/",
  "_searchresults": 33,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/TrialSimulator.html",
    "manual.pdf"
  ],
  "_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"
    }
  ],
  "_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",
    "set_duration",
    "solveMixtureExponentialDistribution",
    "solvePiecewiseConstantExponentialDistribution",
    "solveThreeStateModel",
    "StaggeredRecruiter",
    "strata",
    "summarizeDataFrame",
    "summarizeMilestoneTime",
    "Surv",
    "trial",
    "Trials",
    "update_generator",
    "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": "getDoseRangingOutput",
      "title": "Get simulation output in the vignette doseRanging.Rmd",
      "topics": [
        "getDoseRangingOutput"
      ]
    },
    {
      "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": "set_duration",
      "title": "Extending Duration of a Trial",
      "topics": [
        "set_duration"
      ]
    },
    {
      "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": "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_generator",
      "title": "Updating Data Generators of One or More Endpoints in an Arm",
      "topics": [
        "update_generator"
      ]
    },
    {
      "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": "14.2.0-4ubuntu2~24.04.1",
      "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-04-23 00:24:06",
      "commits": 9
    },
    {
      "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-04-23 00:24:06",
      "commits": 36
    },
    {
      "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": "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-03-30 01:40:21",
      "commits": 4
    },
    {
      "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"
      ],
      "created": "2025-03-19 06:35:56",
      "modified": "2025-09-17 01:08:13",
      "commits": 14
    },
    {
      "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-03-29 21:32:05",
      "commits": 11
    },
    {
      "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-04-26 04:59:22",
      "commits": 7
    },
    {
      "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-03-30 01:40:21",
      "commits": 5
    },
    {
      "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 auxiliary information before the trial runs",
        "Alter a trial via adaptation"
      ],
      "created": "2025-07-28 07:03:35",
      "modified": "2025-11-15 13:55:52",
      "commits": 13
    },
    {
      "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": "2025-08-05 10:28:39",
      "commits": 2
    }
  ],
  "_score": 7.685831274626064,
  "_indexed": true,
  "_nocasepkg": "trialsimulator",
  "_universes": [
    "zhangh12"
  ],
  "_previous": "1.18.4",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.19.0",
      "date": "2026-06-09T08:01:14.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "987035d84f5c8dd98846c02cfeecdc36f8fe73b9",
      "fileid": "56ccb20ec9840ff929189fc95a490d92cf082d73e7cd6fa242b9e4966e4b5384",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/27192010877"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.19.0",
      "date": "2026-06-09T08:01:17.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "987035d84f5c8dd98846c02cfeecdc36f8fe73b9",
      "fileid": "203aeea2f5fe8f4a9dd52d8096374509045e6faf7d9c8f3f815e7a102de45197",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/27192010877"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.19.0",
      "date": "2026-06-09T08:01:57.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "987035d84f5c8dd98846c02cfeecdc36f8fe73b9",
      "fileid": "21c31287b7f01ac1c919f19f79d875536c6e095afcc692f763e1b6518f586578",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/27192010877"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.19.0",
      "date": "2026-06-09T08:01:19.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "987035d84f5c8dd98846c02cfeecdc36f8fe73b9",
      "fileid": "fe1d0207c098987d2a2e6f97a4d62a788f31abdb13998a88ae4a8f86548d35c3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/27192010877"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.19.0",
      "date": "2026-06-09T08:02:52.000Z",
      "arch": "aarch64",
      "commit": "987035d84f5c8dd98846c02cfeecdc36f8fe73b9",
      "fileid": "2af3efb9a6fde0b057e44a46428b631a4b1e4a07114c5819ead5f59b70b50f1d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/27192010877"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.19.0",
      "date": "2026-06-09T08:02:39.000Z",
      "arch": "x86_64",
      "commit": "987035d84f5c8dd98846c02cfeecdc36f8fe73b9",
      "fileid": "d869e1d63ffca06ee0d5888decfc32ddf51b3a5897f5a8a1b8f03a95ebc228f5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/27192010877"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.19.0",
      "date": "2026-06-09T08:08:14.000Z",
      "arch": "aarch64",
      "commit": "987035d84f5c8dd98846c02cfeecdc36f8fe73b9",
      "fileid": "0b8a82c5c0113e813bdce4e01fc967231df4866f1d11ba93a3bda11b0b00d0bb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/27192010877"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.19.0",
      "date": "2026-06-09T08:02:04.000Z",
      "arch": "x86_64",
      "commit": "987035d84f5c8dd98846c02cfeecdc36f8fe73b9",
      "fileid": "597392648e02119daf6c8bccb37b8ee4fbfb4eee06b75506d88089567309daec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/27192010877"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.19.0",
      "date": "2026-06-09T08:01:31.000Z",
      "arch": "emscripten",
      "commit": "987035d84f5c8dd98846c02cfeecdc36f8fe73b9",
      "fileid": "307536ef14f72957b8e16accfcacd5d4550fd185840a4591e90905866bc6ff16",
      "status": "success",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/27192010877"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.19.0",
      "date": "2026-06-09T08:00:01.000Z",
      "arch": "x86_64",
      "commit": "987035d84f5c8dd98846c02cfeecdc36f8fe73b9",
      "fileid": "4a46cc630f464cda5126bf1a38f5255324df2ec30af25907f1baa8345229fb8a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/27192010877"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.19.0",
      "date": "2026-06-09T08:00:22.000Z",
      "arch": "x86_64",
      "commit": "987035d84f5c8dd98846c02cfeecdc36f8fe73b9",
      "fileid": "ee656ea0eede472f9fcec7b1fc18fcb9d55e9f9011700f9dc6e076fe758bdea2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/27192010877"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.19.0",
      "date": "2026-06-09T08:00:14.000Z",
      "arch": "x86_64",
      "commit": "987035d84f5c8dd98846c02cfeecdc36f8fe73b9",
      "fileid": "ab55c76df0be9bda1070bb7e5516388222dac4d5a0f1d84a638e5852c23c0b0b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zhangh12/actions/runs/27192010877"
    }
  ]
}