{
  "_id": "6ad311706814ce853b657d8a",
  "Package": "npsurvSS",
  "Type": "Package",
  "Title": "Sample Size and Power Calculation for Common Non-Parametric\nTests in Survival Analysis",
  "Version": "1.1.0",
  "Authors@R": "c(person(\"Godwin\", \"Yung\", email=\"godwin.y.yung@gmail.com\", role=c(\"aut\", \"cre\")),\nperson(\"Yi\", \"Liu\", email=\"yiliu4321@gmail.com\", role=c(\"aut\")))",
  "Author": "Godwin Yung [aut, cre], Yi Liu [aut]",
  "Maintainer": "Godwin Yung <godwin.y.yung@gmail.com>",
  "Description": "A number of statistical tests have been proposed to\ncompare two survival curves, including the difference in (or\nratio of) t-year survival, difference in (or ratio of) p-th\npercentile survival, difference in (or ratio of) restricted\nmean survival time, and the weighted log-rank test. Despite the\nmultitude of options, the convention in survival studies is to\nassume proportional hazards and to use the unweighted log-rank\ntest for design and analysis. This package provides sample size\nand power calculation for all of the above statistical tests\nwith allowance for flexible accrual, censoring, and survival\n(eg. Weibull, piecewise-exponential, mixture cure). It is the\ncompanion R package to the paper by Yung and Liu (2020)\n<doi:10.1111/biom.13196>. Specific to the weighted log-rank\ntest, users may specify which approximations they wish to use\nto estimate the large-sample mean and variance. The default\noption has been shown to provide substantial improvement over\nthe conventional sample size and power equations based on\nSchoenfeld (1981) <doi:10.1093/biomet/68.1.316>.",
  "License": "GPL-2",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.1",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/godwinyung/npsurvSS",
  "BugReports": "https://github.com/godwinyung/npsurvSS/issues",
  "Repository": "https://godwinyyung.r-universe.dev",
  "Date/Publication": "2024-04-13 17:22:06 UTC",
  "RemoteUrl": "https://github.com/godwinyyung/npsurvss",
  "RemoteRef": "HEAD",
  "RemoteSha": "f86e7e8590c85e09488a8adc5a81b71d5e8f51d0",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-17 06:07:21 UTC",
    "User": "root"
  },
  "_user": "godwinyyung",
  "_type": "src",
  "_file": "npsurvSS_1.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/2f26337b66f0b371fe72bdb8c4949a29d4fb52b849559e1f653e6067eab7edde",
  "_filesize": 851249,
  "_sha256": "2f26337b66f0b371fe72bdb8c4949a29d4fb52b849559e1f653e6067eab7edde",
  "_expires": "2027-01-25T06:10:55.000Z",
  "_created": "2026-10-17T06:07:21.000Z",
  "_published": "2026-10-17T06:10:56.703Z",
  "_buildurl": "https://github.com/r-universe/godwinyyung/actions/runs/39008499206",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117326544514,
      "time": 114,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12092017617"
    },
    {
      "job": 117326544517,
      "time": 103,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12091788154"
    },
    {
      "job": 117326544549,
      "time": 171,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12092390750"
    },
    {
      "job": 117326544498,
      "time": 134,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12092301198"
    },
    {
      "job": 117325836479,
      "time": 229,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12092022318"
    },
    {
      "job": 117326544629,
      "time": 78,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12091569111"
    },
    {
      "job": 117326544535,
      "time": 68,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12091653563"
    },
    {
      "job": 117326544534,
      "time": 51,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12091494930"
    },
    {
      "job": 117326544512,
      "time": 63,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12092365689"
    }
  ],
  "_upstream": "https://github.com/godwinyyung/npsurvss",
  "_commit": {
    "id": "f86e7e8590c85e09488a8adc5a81b71d5e8f51d0",
    "author": "Godwin Yung <yungg@gene.com>",
    "committer": "Godwin Yung <yungg@gene.com>",
    "message": "update http to https for CRAN submission\n",
    "time": 1713028926
  },
  "_maintainer": {
    "name": "Godwin Yung",
    "email": "godwin.y.yung@gmail.com",
    "login": "godwinyyung",
    "twitter": "@godwinyyung",
    "description": "",
    "uuid": 12722283
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.4.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    }
  ],
  "_owner": "godwinyyung",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "godwinyyung",
      "count": 8,
      "uuid": 12722283
    },
    {
      "user": "littlebeannie",
      "count": 1,
      "uuid": 43153957
    }
  ],
  "_userbio": {
    "uuid": 12722283,
    "type": "user",
    "name": "Godwin Yung",
    "followers": 7
  },
  "_downloads": {
    "count": 658,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/npsurvSS"
  },
  "_devurl": "https://github.com/godwinyung/npsurvss",
  "_searchresults": 14,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/npsurvSS.html"
  ],
  "_homeurl": "https://github.com/godwinyyung/npsurvss",
  "_realowner": "godwinyyung",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.1",
      "date": "2019-12-18"
    },
    {
      "version": "1.1.0",
      "date": "2024-05-08"
    }
  ],
  "_exports": [
    "create_arm",
    "create_arm_lachin",
    "daccr",
    "dloss",
    "dmaxU",
    "dminimaxU",
    "dsurv",
    "emaxU",
    "eminimaxU",
    "exp_duration",
    "exp_events",
    "hloss",
    "hsurv",
    "paccr",
    "per2haz",
    "ploss",
    "pmaxU",
    "pminimaxU",
    "power_two_arm",
    "psurv",
    "qaccr",
    "qloss",
    "qminimaxU",
    "qsurv",
    "raccr",
    "rloss",
    "rsurv",
    "simulate_arm",
    "simulate_trial",
    "size_two_arm"
  ],
  "_help": [
    {
      "page": "create_arm",
      "title": "Create an 'arm' object",
      "topics": [
        "create_arm"
      ]
    },
    {
      "page": "create_arm_lachin",
      "title": "Create a 'lachin' object",
      "topics": [
        "create_arm_lachin"
      ]
    },
    {
      "page": "daccr",
      "title": "Accrual",
      "topics": [
        "daccr",
        "paccr",
        "qaccr",
        "raccr"
      ]
    },
    {
      "page": "dloss",
      "title": "Loss to follow-up",
      "topics": [
        "dloss",
        "hloss",
        "ploss",
        "qloss",
        "rloss"
      ]
    },
    {
      "page": "dmaxU",
      "title": "Maximum observed time",
      "topics": [
        "dmaxU",
        "emaxU",
        "pmaxU"
      ]
    },
    {
      "page": "dminimaxU",
      "title": "Minimax observed time",
      "topics": [
        "dminimaxU",
        "eminimaxU",
        "pminimaxU",
        "qminimaxU"
      ]
    },
    {
      "page": "dsurv",
      "title": "Survival",
      "topics": [
        "dsurv",
        "hsurv",
        "psurv",
        "qsurv",
        "rsurv"
      ]
    },
    {
      "page": "exp_duration",
      "title": "Expected duration",
      "topics": [
        "exp_duration"
      ]
    },
    {
      "page": "exp_events",
      "title": "Expected number of events",
      "topics": [
        "exp_events"
      ]
    },
    {
      "page": "per2haz",
      "title": "Convert exponential parameters",
      "topics": [
        "per2haz"
      ]
    },
    {
      "page": "power_two_arm",
      "title": "Power",
      "topics": [
        "power_two_arm"
      ]
    },
    {
      "page": "simulate_arm",
      "title": "Simulate complete data for a single arm",
      "topics": [
        "simulate_arm"
      ]
    },
    {
      "page": "simulate_trial",
      "title": "Simulate a clinical trial",
      "topics": [
        "simulate_trial"
      ]
    },
    {
      "page": "size_two_arm",
      "title": "Sample size",
      "topics": [
        "size_two_arm"
      ]
    }
  ],
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "basic_functionalities.Rmd",
      "filename": "basic_functionalities.html",
      "title": "Basic functionalities",
      "author": "Godwin Yung",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Creating objects of class \"arm\"",
        "Visualizing distributional assumptions",
        "Calculating power and sample size",
        "Event-driven trials",
        "Simulating a trial"
      ],
      "created": "2019-08-16 15:30:56",
      "modified": "2019-08-16 15:30:56",
      "commits": 1
    },
    {
      "source": "example1.Rmd",
      "filename": "example1.html",
      "title": "Example 1: Optimal randomization ratio",
      "author": "Godwin Yung",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Preliminaries",
        "Figure 1C",
        "Figure 2"
      ],
      "created": "2019-08-16 15:30:56",
      "modified": "2024-03-29 21:06:38",
      "commits": 2
    },
    {
      "source": "example2.Rmd",
      "filename": "example2.html",
      "title": "Example 2: Delayed treatment effect",
      "author": "Godwin Yung",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Figure 3",
        "Figure 4A"
      ],
      "created": "2019-08-16 15:30:56",
      "modified": "2024-03-29 21:06:38",
      "commits": 2
    }
  ],
  "_score": 4.1003705451175625,
  "_indexed": true,
  "_nocasepkg": "npsurvss",
  "_universes": [
    "godwinyyung",
    "godwinyung"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-10-17T06:09:17.000Z",
      "distro": "resolute",
      "commit": "f86e7e8590c85e09488a8adc5a81b71d5e8f51d0",
      "fileid": "https://r2.ropensci.org/29ea3dede21dec62979a3c43093731639e2620300b2719885ba1e4f25bb0906d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/godwinyyung/actions/runs/39008499206"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-10-17T06:09:09.000Z",
      "distro": "resolute",
      "commit": "f86e7e8590c85e09488a8adc5a81b71d5e8f51d0",
      "fileid": "https://r2.ropensci.org/1e707791ffce4baa2d3e040e38caaf48868267a82d09e97fb23d4488db7f544a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/godwinyyung/actions/runs/39008499206"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-10-17T06:09:42.000Z",
      "commit": "f86e7e8590c85e09488a8adc5a81b71d5e8f51d0",
      "fileid": "https://r2.ropensci.org/5c5552a334e69a07930c941b3ce4a39ff09cd028039fd2ea828edc123ec426e3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/godwinyyung/actions/runs/39008499206"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-10-17T06:09:25.000Z",
      "commit": "f86e7e8590c85e09488a8adc5a81b71d5e8f51d0",
      "fileid": "https://r2.ropensci.org/21cd1af5c664cb0687e62ad3eb78db3c53191055a0e3355bacab9637f27e556e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/godwinyyung/actions/runs/39008499206"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.0",
      "date": "2026-10-17T06:08:57.000Z",
      "commit": "f86e7e8590c85e09488a8adc5a81b71d5e8f51d0",
      "fileid": "https://r2.ropensci.org/7078c31468ec118f205df68724ad921eafaef1242ff029ac43356b41c7cb96c6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/godwinyyung/actions/runs/39008499206"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-10-17T06:08:29.000Z",
      "commit": "f86e7e8590c85e09488a8adc5a81b71d5e8f51d0",
      "fileid": "https://r2.ropensci.org/8c074e8ddb546160ba447a6eb0857ade4fca7fbe75baa1a735acf863511f39c4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/godwinyyung/actions/runs/39008499206"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-10-17T06:08:17.000Z",
      "commit": "f86e7e8590c85e09488a8adc5a81b71d5e8f51d0",
      "fileid": "https://r2.ropensci.org/d7ba01e1174db34cc91b757f3f09ff7822dbb484018f66dc75b709680710d2c2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/godwinyyung/actions/runs/39008499206"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-10-17T06:08:25.000Z",
      "commit": "f86e7e8590c85e09488a8adc5a81b71d5e8f51d0",
      "fileid": "https://r2.ropensci.org/78c86a1ced5107fbbdcaffb792f3e9e1da79450639b39b3e557c6a6189109d0c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/godwinyyung/actions/runs/39008499206"
    }
  ]
}