{
  "_id": "6ac22548773a0037682c2a77",
  "Package": "ccwr",
  "Title": "Clone-Censor-Weight Methods for Target Trial Emulation",
  "Version": "0.0.1",
  "Authors@R": "c(\nperson(\"Sang Ho\", \"Park\", email = \"shstat1729@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Youngrok\", \"Lee\", role = \"aut\"),\nperson(\"Jihyeon\", \"Baek\", role = \"aut\"),\nperson(\"Hye Won\", \"Yang\", role = \"aut\"),\nperson(\"Donghoon\", \"Jeong\", role = \"aut\")\n)",
  "Description": "Provides methods for clone-censor-weight analyses that\nemulate target trials with grace-period treatment strategies\nusing observational time-to-event data. Tools clone\nparticipants across strategies, apply strategy-specific\nartificial censoring, and estimate inverse probability of\ncensoring weights using pooled logistic or Cox models, fit\nweighted outcome models, and obtain subject-level bootstrap\nconfidence intervals by repeating the complete analysis. The\nmethods are described by Maringe et al. (2020)\n<doi:10.1093/ije/dyaa057> and Gaber et al. (2024)\n<doi:10.1002/cam4.70461>.",
  "License": "MIT + file LICENSE",
  "Copyright": "See inst/COPYRIGHTS",
  "URL": "https://github.com/CausalInferenceLab/ccwr",
  "BugReports": "https://github.com/CausalInferenceLab/ccwr/issues",
  "Encoding": "UTF-8",
  "Config/testthat/edition": "3",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "8.0.0",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Repository": "https://causalinferencelab.r-universe.dev",
  "Date/Publication": "2026-08-20 21:42:58 UTC",
  "RemoteUrl": "https://github.com/causalinferencelab/ccwr",
  "RemoteRef": "HEAD",
  "RemoteSha": "d27a4e8a481c8621339ffaac2c069b223996c96f",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-04 10:03:09 UTC",
    "User": "root"
  },
  "Author": "Sang Ho Park [aut, cre],\nYoungrok Lee [aut],\nJihyeon Baek [aut],\nHye Won Yang [aut],\nDonghoon Jeong [aut]",
  "Maintainer": "Sang Ho Park <shstat1729@gmail.com>",
  "_user": "causalinferencelab",
  "_type": "src",
  "_file": "ccwr_0.0.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/27ae75a95d05082cc8a0b7d602600ccf1ab8c1be1eb926cceac6763a85fe5d17",
  "_filesize": 278304,
  "_sha256": "27ae75a95d05082cc8a0b7d602600ccf1ab8c1be1eb926cceac6763a85fe5d17",
  "_expires": "2027-01-12T10:07:02.000Z",
  "_created": "2026-10-04T10:03:09.000Z",
  "_published": "2026-10-04T10:07:04.636Z",
  "_jobs": [
    {
      "job": 111412314711,
      "time": 124,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11299883618"
    },
    {
      "job": 111412314706,
      "time": 148,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11300008349"
    },
    {
      "job": 111412314646,
      "time": 122,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11300232767"
    },
    {
      "job": 111412314702,
      "time": 194,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11300665035"
    },
    {
      "job": 111411888977,
      "time": 156,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11300038091"
    },
    {
      "job": 111412314635,
      "time": 106,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11300058306"
    },
    {
      "job": 111412314682,
      "time": 93,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11300615005"
    },
    {
      "job": 111412314749,
      "time": 76,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11300048140"
    },
    {
      "job": 111412314708,
      "time": 88,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11299494814"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/causalinferencelab/actions/runs/37193958826",
  "_status": "success",
  "_upstream": "https://github.com/causalinferencelab/ccwr",
  "_commit": {
    "id": "d27a4e8a481c8621339ffaac2c069b223996c96f",
    "author": "shstat1729 <shstat1729@gmail.com>",
    "committer": "shstat1729 <shstat1729@gmail.com>",
    "message": "Update test failure\n",
    "time": 1787262178
  },
  "_maintainer": {
    "name": "Sang Ho Park",
    "email": "shstat1729@gmail.com"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.4.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.2.0",
      "role": "Suggests"
    }
  ],
  "_owner": "causalinferencelab",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-14",
      "n": 7
    },
    {
      "week": "2026-15",
      "n": 2
    },
    {
      "week": "2026-25",
      "n": 2
    },
    {
      "week": "2026-26",
      "n": 2
    },
    {
      "week": "2026-28",
      "n": 3
    },
    {
      "week": "2026-30",
      "n": 2
    },
    {
      "week": "2026-31",
      "n": 3
    },
    {
      "week": "2026-33",
      "n": 1
    },
    {
      "week": "2026-34",
      "n": 5
    }
  ],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "shstat1729",
      "count": 19,
      "uuid": 60315070
    },
    {
      "user": "youngroklee-ml",
      "count": 12,
      "uuid": 30917347
    },
    {
      "user": "goongdeee",
      "count": 4,
      "uuid": 48347044
    },
    {
      "user": "jihyeon-st",
      "count": 2,
      "uuid": 300279132
    },
    {
      "user": "hyewon-a",
      "count": 1,
      "uuid": 279967402
    }
  ],
  "_userbio": {
    "uuid": 114298781,
    "type": "organization",
    "name": "가짜연구소 Causal Inference Team",
    "followers": 183,
    "description": "안녕하세요. 가짜연구소 Causal Inference 팀입니다!"
  },
  "_downloads": {
    "count": 435,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ccwr"
  },
  "_devurl": "https://github.com/causalinferencelab/ccwr",
  "_searchresults": 3,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/ccwr.html",
    "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",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/causalinferencelab/ccwr",
  "_realowner": "causalinferencelab",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.2",
      "date": "2026-09-08"
    }
  ],
  "_exports": [
    "apply_logics",
    "clone_arms",
    "create_censoring_logics_A",
    "create_final_data",
    "create_policy_A",
    "emul_estimate",
    "emul_estimate_bootstrap",
    "estimate_censoring",
    "make_surv_response",
    "read_trial_data",
    "weight_cases"
  ],
  "_datasets": [
    {
      "name": "lungcancer",
      "title": "Simulated lung cancer patients data by Maringe et al. (2020)",
      "object": "lungcancer",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "id",
        "surgery",
        "timetosurgery",
        "death",
        "sex",
        "charlson",
        "perf",
        "stage",
        "emergency",
        "fup_obs",
        "age",
        "deprivation"
      ],
      "rows": 200,
      "table": true,
      "tojson": true
    },
    {
      "name": "patients13",
      "title": "13 types of patient records in Maringe et al. (2020)",
      "object": "patients13",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "id",
        "surgery",
        "time_to_surgery",
        "death",
        "followup"
      ],
      "rows": 13,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "apply_logics",
      "title": "Apply case_when logics (e.g. policy, censoring) to clones",
      "topics": [
        "apply_logics"
      ]
    },
    {
      "page": "clone_arms",
      "title": "Duplicate data frame for each treatment arm to emulate",
      "topics": [
        "clone_arms"
      ]
    },
    {
      "page": "create_censoring_logics_A",
      "title": "Generate censoring logic for scenario A",
      "topics": [
        "create_censoring_logics_A"
      ]
    },
    {
      "page": "create_final_data",
      "title": "Create training data for censoring probability estimation",
      "topics": [
        "create_final_data"
      ]
    },
    {
      "page": "create_policy_A",
      "title": "Generate clone policy for scenario A",
      "topics": [
        "create_policy_A"
      ]
    },
    {
      "page": "emul_estimate",
      "title": "Estimate the emulated trial effect",
      "topics": [
        "emul_estimate"
      ]
    },
    {
      "page": "emul_estimate_bootstrap",
      "title": "Bootstrap a complete clone-censor-weight analysis",
      "topics": [
        "emul_estimate_bootstrap"
      ]
    },
    {
      "page": "estimate_censoring",
      "title": "Estimate censoring probabilities",
      "topics": [
        "estimate_censoring"
      ]
    },
    {
      "page": "lungcancer",
      "title": "Simulated lung cancer patients data by Maringe et al. (2020)",
      "topics": [
        "lungcancer"
      ]
    },
    {
      "page": "make_surv_response",
      "title": "Construct a survival response",
      "topics": [
        "make_surv_response"
      ]
    },
    {
      "page": "patients13",
      "title": "13 types of patient records in Maringe et al. (2020)",
      "topics": [
        "patients13"
      ]
    },
    {
      "page": "read_trial_data",
      "title": "Read trial-style data from CSV",
      "topics": [
        "read_trial_data"
      ]
    },
    {
      "page": "weight_cases",
      "title": "Add inverse probability of censoring weights",
      "topics": [
        "weight_cases"
      ]
    }
  ],
  "_readme": "https://github.com/causalinferencelab/ccwr/raw/HEAD/README.md",
  "_rundeps": [
    "bit",
    "bit64",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "dplyr",
    "generics",
    "glue",
    "hms",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "R6",
    "readr",
    "rlang",
    "survival",
    "tibble",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "vroom",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "ccwr.Rmd",
      "filename": "ccwr.html",
      "title": "An Overview of the ccwr Package for R",
      "author": "Jihyeon Baek, Hye Won Yang",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Target trial emulation",
        "The problem it solves",
        "Data",
        "Reading your own data",
        "Clone-censor-weighting",
        "Clone",
        "Censor",
        "The intuition, traced by hand",
        "Deriving the grace-period rules",
        "Expanding to person-time",
        "Weight",
        "Estimating the effect",
        "Summary",
        "References"
      ],
      "created": "2026-08-12 00:07:00",
      "modified": "2026-08-18 22:21:45",
      "commits": 3
    }
  ],
  "_score": 5.732393759822968,
  "_indexed": true,
  "_nocasepkg": "ccwr",
  "_universes": [
    "causalinferencelab"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.1",
      "date": "2026-10-04T10:05:05.000Z",
      "distro": "resolute",
      "commit": "d27a4e8a481c8621339ffaac2c069b223996c96f",
      "fileid": "https://r2.ropensci.org/994ee0e5786dc34f3abb5977ae59636c3c98366debfee1f523a0fdbcf2253b71",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causalinferencelab/actions/runs/37193958826"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.1",
      "date": "2026-10-04T10:05:34.000Z",
      "distro": "resolute",
      "commit": "d27a4e8a481c8621339ffaac2c069b223996c96f",
      "fileid": "https://r2.ropensci.org/191b04e3b8dcf69592704ae482638eebad11cb0e2195f57f9966e75b101ca522",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causalinferencelab/actions/runs/37193958826"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-10-04T10:04:59.000Z",
      "commit": "d27a4e8a481c8621339ffaac2c069b223996c96f",
      "fileid": "https://r2.ropensci.org/7414024118d4a623dbe5e81b1e3b19dd29e8a6cb852ba5bb100948ab9b6de20b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causalinferencelab/actions/runs/37193958826"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-10-04T10:05:38.000Z",
      "commit": "d27a4e8a481c8621339ffaac2c069b223996c96f",
      "fileid": "https://r2.ropensci.org/6d4cb537442959b660c0ecc856953bbd8da73e8487b74dbfd601bc8e5a89fa30",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causalinferencelab/actions/runs/37193958826"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.1",
      "date": "2026-10-04T10:05:10.000Z",
      "commit": "d27a4e8a481c8621339ffaac2c069b223996c96f",
      "fileid": "https://r2.ropensci.org/eddeb34f7efcb23bb4688d106fbfad2b4dcfb769ef14d875d68b18192759512f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/causalinferencelab/actions/runs/37193958826"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-10-04T10:04:25.000Z",
      "commit": "d27a4e8a481c8621339ffaac2c069b223996c96f",
      "fileid": "https://r2.ropensci.org/618170d948d4e2aa992fac6be842b08d9b4c3ab172619a1d6ac05b677f7f2425",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causalinferencelab/actions/runs/37193958826"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-10-04T10:04:13.000Z",
      "commit": "d27a4e8a481c8621339ffaac2c069b223996c96f",
      "fileid": "https://r2.ropensci.org/797dc2340c96649a7e5533f1af051fb5fc936465fe21fd0e49394cd284c05a19",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causalinferencelab/actions/runs/37193958826"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-10-04T10:04:26.000Z",
      "commit": "d27a4e8a481c8621339ffaac2c069b223996c96f",
      "fileid": "https://r2.ropensci.org/fff8168eb311d72b3a5d2d5f7913d1d035d4c9f33c374fce205d48ec57434729",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/causalinferencelab/actions/runs/37193958826"
    }
  ]
}