{
  "_id": "6a1eda35b401979e7340f51b",
  "Package": "PSsurvival",
  "Title": "Propensity Score Methods for Survival Analysis",
  "Version": "0.2.0",
  "Date": "2026-01-09",
  "Authors@R": "c(\nperson(\"Chengxin\", \"Yang\",\nemail = \"chengxin.yang@duke.edu\",\nrole = c(\"aut\", \"cre\")),\nperson(\"Chao\", \"Cheng\",\nemail = \"chaoc@wustl.edu\",\nrole = \"aut\"),\nperson(\"Fan\", \"Li\",\nemail=\"fl35@duke.edu\",\nrole = \"aut\"),\nperson(\"Fan\", \"Li\",\nemail = \"fan.f.li@yale.edu\",\nrole = \"aut\"))",
  "Description": "Implements propensity score weighting methods for\nestimating counterfactual survival functions, marginal hazard\nratios, and weighted Kaplan-Meier and cumulative risk curves in\nobservational studies with time-to-event outcomes. Supports\nbinary and multiple treatment groups with inverse probability\nof treatment weighting (IPW), overlap weighting (OW), and\naverage treatment effect on the treated (ATT). Includes\nsymmetric trimming (Crump extension) for extreme propensity\nscores. Variance estimation via analytical M-estimation or\nbootstrap. Methods based on Li et al. (2018)\n<doi:10.1080/01621459.2016.1260466>, Li & Li (2019)\n<doi:10.1214/19-AOAS1282>, and Cheng et al. (2022)\n<doi:10.1093/aje/kwac043>.",
  "License": "GPL (>= 2)",
  "URL": "https://github.com/cxinyang/PSsurvival",
  "BugReports": "https://github.com/cxinyang/PSsurvival/issues",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Repository": "https://cxinyang.r-universe.dev",
  "Date/Publication": "2026-01-10 03:58:53 UTC",
  "RemoteUrl": "https://github.com/cxinyang/pssurvival",
  "RemoteRef": "HEAD",
  "RemoteSha": "ea90919e6113048ab21b8aa01ef28a6b5216d068",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-20 09:10:45 UTC",
    "User": "root"
  },
  "Author": "Chengxin Yang [aut, cre],\nChao Cheng [aut],\nFan Li [aut],\nFan Li [aut]",
  "Maintainer": "Chengxin Yang <chengxin.yang@duke.edu>",
  "MD5sum": "c559bf9f96a6ea6273afa76ffeedfcfc",
  "_user": "cxinyang",
  "_type": "src",
  "_file": "PSsurvival_0.2.0.tar.gz",
  "_fileid": "920a98022b01132dc1d448a97e3c6764217ca9c612bf71532ed738bc50565646",
  "_filesize": 1068389,
  "_sha256": "920a98022b01132dc1d448a97e3c6764217ca9c612bf71532ed738bc50565646",
  "_created": "2026-05-20T09:10:45.000Z",
  "_published": "2026-06-02T13:27:17.784Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79081488779,
      "time": 134,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7105920615"
    },
    {
      "job": 79081489578,
      "time": 132,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105919777"
    },
    {
      "job": 79081488851,
      "time": 171,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7105921372"
    },
    {
      "job": 79081489083,
      "time": 174,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105924029"
    },
    {
      "job": 79081488176,
      "time": 205,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105868175"
    },
    {
      "job": 79081488240,
      "time": 105,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7358990242"
    },
    {
      "job": 79081489036,
      "time": 94,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7105905648"
    },
    {
      "job": 79081489617,
      "time": 93,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7105905419"
    },
    {
      "job": 79081489281,
      "time": 111,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105911752"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cxinyang/actions/runs/26152765831",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cxinyang/pssurvival",
  "_commit": {
    "id": "ea90919e6113048ab21b8aa01ef28a6b5216d068",
    "author": "Chengxin <chengxin@Chengxins-MacBook-Pro.local>",
    "committer": "Chengxin <chengxin@Chengxins-MacBook-Pro.local>",
    "message": "Release version 0.2.0\n\n  Major API changes:\n  - Renamed estimand to weight_method for consistency\n  - Changed trim to logical\n  - Added weightedKM() function with plot/summary methods\n  - Added vignette with updated API\n  - Updated all documentation and tests\n",
    "time": 1768017533
  },
  "_maintainer": {
    "name": "Chengxin Yang",
    "email": "chengxin.yang@duke.edu"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "cowplot",
      "role": "Imports"
    },
    {
      "package": "nnet",
      "role": "Suggests"
    },
    {
      "package": "parallel",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cxinyang",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-48",
      "n": 5
    },
    {
      "week": "2025-49",
      "n": 1
    },
    {
      "week": "2026-02",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.2.0",
      "date": "2026-01-10"
    }
  ],
  "_stars": 2,
  "_userbio": {
    "uuid": 234280587,
    "type": "user",
    "name": "cxinyang"
  },
  "_downloads": {
    "count": 181,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/PSsurvival"
  },
  "_devurl": "https://github.com/cxinyang/pssurvival",
  "_searchresults": 0,
  "_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/PSsurvival.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/cxinyang/pssurvival",
  "_realowner": "cxinyang",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2025-12-11"
    },
    {
      "version": "0.2.0",
      "date": "2026-01-10"
    }
  ],
  "_exports": [
    "estimate_ps",
    "estimate_weights",
    "marCoxph",
    "surveff",
    "weightedKM"
  ],
  "_datasets": [
    {
      "name": "simdata_bin",
      "title": "Simulated Survival Data with Binary Treatment",
      "object": "simdata_bin",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X1",
        "X2",
        "X3",
        "B1",
        "B2",
        "Z",
        "time",
        "event"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    },
    {
      "name": "simdata_multi",
      "title": "Simulated Survival Data with Multiple Treatments",
      "object": "simdata_multi",
      "class": [
        "data.frame"
      ],
      "fields": [
        "X1",
        "X2",
        "X3",
        "B1",
        "B2",
        "Z",
        "time",
        "event"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "estimate_ps",
      "title": "Propensity Score Estimation for PSsurvival Package",
      "topics": [
        "estimate_ps"
      ]
    },
    {
      "page": "estimate_weights",
      "title": "Estimate Propensity Score Weights",
      "topics": [
        "estimate_weights"
      ]
    },
    {
      "page": "marCoxph",
      "title": "Marginal Cox Model with Propensity Score Weighting",
      "topics": [
        "marCoxph"
      ]
    },
    {
      "page": "plot.surveff",
      "title": "Plot Method for surveff Objects",
      "topics": [
        "plot.surveff"
      ]
    },
    {
      "page": "plot.weightedKM",
      "title": "Plot Method for Weighted Kaplan-Meier Estimates",
      "topics": [
        "plot.weightedKM"
      ]
    },
    {
      "page": "print.marCoxph",
      "title": "Print Method for marCoxph Objects",
      "topics": [
        "print.marCoxph"
      ]
    },
    {
      "page": "print.surveff",
      "title": "Print Method for surveff Objects",
      "topics": [
        "print.surveff"
      ]
    },
    {
      "page": "print.weightedKM",
      "title": "Print Method for Weighted Kaplan-Meier Estimates",
      "topics": [
        "print.weightedKM"
      ]
    },
    {
      "page": "simdata_bin",
      "title": "Simulated Survival Data with Binary Treatment",
      "topics": [
        "simdata_bin"
      ]
    },
    {
      "page": "simdata_multi",
      "title": "Simulated Survival Data with Multiple Treatments",
      "topics": [
        "simdata_multi"
      ]
    },
    {
      "page": "summary.marCoxph",
      "title": "Summary Method for marCoxph Objects",
      "topics": [
        "summary.marCoxph"
      ]
    },
    {
      "page": "summary.surveff",
      "title": "Summary Method for surveff Objects",
      "topics": [
        "summary.surveff"
      ]
    },
    {
      "page": "summary.weightedKM",
      "title": "Summary Method for Weighted Kaplan-Meier Estimates",
      "topics": [
        "summary.weightedKM"
      ]
    },
    {
      "page": "surveff",
      "title": "Survival Effect Estimation with Propensity Score Weighting",
      "topics": [
        "surveff"
      ]
    },
    {
      "page": "weightedKM",
      "title": "Weighted Kaplan-Meier Estimation with Propensity Score Weights",
      "topics": [
        "weightedKM"
      ]
    }
  ],
  "_readme": "https://github.com/cxinyang/pssurvival/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cowplot",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "Matrix",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "survival",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "PSsurvival-tutorial.Rmd",
      "filename": "PSsurvival-tutorial.html",
      "title": "PSsurvival: Propensity Score Weighting for Survival Analysis",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Introduction",
        "2. Data for Vignette",
        "3. surveff(): Counterfactual Survival Probabilities and Differences",
        "Key Arguments",
        "Basic Usage: Binary Treatment",
        "Multiple Treatment Groups",
        "Weighting Methods",
        "Propensity Score Trimming",
        "Censoring Methods",
        "Variance Estimation",
        "Summary Output",
        "Plotting Results",
        "4. marCoxph(): Marginal Hazard Ratios by Cox-PH model",
        "Trimming Options",
        "Variance Options",
        "5. weightedKM(): Kaplan-Meier or Cumulative Risk Curves with Propensity Score Weights",
        "Fit a weightedKM() Object",
        "Without Propensity Score Weights",
        "With Propensity Score Weights",
        "Creating Weighted KM or CR Curves",
        "Kaplan-Meier vs. CR",
        "Confidence intervals",
        "Risk Tables",
        "Summary",
        "References"
      ],
      "created": "2025-11-24 22:33:51",
      "modified": "2026-01-10 03:58:53",
      "commits": 3
    }
  ],
  "_score": 4.477121254719663,
  "_indexed": true,
  "_nocasepkg": "pssurvival",
  "_universes": [
    "cxinyang"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-05-20T09:12:57.000Z",
      "distro": "noble",
      "commit": "ea90919e6113048ab21b8aa01ef28a6b5216d068",
      "fileid": "447bd651879d3fecd2f0dee29b5f555202fb0441b2c4d1dd11adbf56650a0ac9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cxinyang/actions/runs/26152765831"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-05-20T09:12:56.000Z",
      "distro": "noble",
      "commit": "ea90919e6113048ab21b8aa01ef28a6b5216d068",
      "fileid": "132959a408c505b611daef6bc1e956dc34a2c43b0584826923a9003f136fe521",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cxinyang/actions/runs/26152765831"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-05-20T09:13:04.000Z",
      "commit": "ea90919e6113048ab21b8aa01ef28a6b5216d068",
      "fileid": "05c12a6e251f4b724641844bbdeb9fe646afcc25936d59212d4fac16dbb357d1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cxinyang/actions/runs/26152765831"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-05-20T09:13:08.000Z",
      "commit": "ea90919e6113048ab21b8aa01ef28a6b5216d068",
      "fileid": "dbf315d2ec0c3344e3bc7e90819651bf824d016dd6cd58daef86af90a71f5b42",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cxinyang/actions/runs/26152765831"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-20T09:12:08.000Z",
      "commit": "ea90919e6113048ab21b8aa01ef28a6b5216d068",
      "fileid": "fcd3a3049c1ef394592527fb61921fd17872c7a64af3cda8040681bb2fe5dd35",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cxinyang/actions/runs/26152765831"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-20T09:12:08.000Z",
      "commit": "ea90919e6113048ab21b8aa01ef28a6b5216d068",
      "fileid": "e66f1777524e5e2a5623b6d2daf4253c1066839fede7d6121da2fc3793139064",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cxinyang/actions/runs/26152765831"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-05-20T09:12:27.000Z",
      "commit": "ea90919e6113048ab21b8aa01ef28a6b5216d068",
      "fileid": "31293ab571a5113a30744774cf50ed228ad5ab3904773e94ed4bc096925003b8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cxinyang/actions/runs/26152765831"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-06-02T13:26:45.000Z",
      "commit": "ea90919e6113048ab21b8aa01ef28a6b5216d068",
      "fileid": "985e79eb8e107b00d121832eeea521342557c87355a23a41192f0ef8d3089b45",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cxinyang/actions/runs/26152765831"
    }
  ]
}