{
  "_id": "6a1f264ab401979e73421e9f",
  "Package": "nphPower",
  "Title": "Sample Size Calculation under Non-Proportional Hazards",
  "Version": "1.1.0",
  "Authors@R": "person(given = \"Huan\",\nfamily = \"Cheng\",\nrole = c(\"aut\", \"cre\"),\nemail = \"hcheng1118@hotmail.com\",\ncomment = c(ORCID = \"0000-0002-2552-7656\"))",
  "Description": "Performs combination tests and sample size calculation for\nfixed design with survival endpoints using combination tests\nunder either proportional hazards or non-proportional hazards.\nThe combination tests include maximum weighted log-rank test\nand projection test. The sample size calculation procedure is\nvery flexible, allowing for user-defined hazard ratio function\nand considering various trial conditions like staggered entry,\ndrop-out etc. The sample size calculation also applies to\nvarious cure models such as proportional hazards cure model,\ncure model with (random) delayed treatments effects. Trial\nsimulation function is also provided to facilitate the\nempirical power calculation. The references for projection test\nand maximum weighted logrank test include Brendel et al. (2014)\n<doi:10.1111/sjos.12059> and Cheng and He (2021)\n<arXiv:2110.03833>. The references for sample size calculation\nunder proportional hazard include Schoenfeld (1981)\n<doi:10.1093/biomet/68.1.316> and Freedman (1982)\n<doi:10.1002/sim.4780010204>. The references for calculation\nunder non-proportional hazards include Lakatos (1988)\n<doi:10.2307/2531910> and Cheng and He (2023)\n(doi:10.1002/bimj.202100403).",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.1",
  "URL": "https://github.com/hcheng99/nphPower",
  "Repository": "https://hcheng99.r-universe.dev",
  "Date/Publication": "2024-03-25 19:53:46 UTC",
  "RemoteUrl": "https://github.com/hcheng99/nphpower",
  "RemoteRef": "HEAD",
  "RemoteSha": "6ef23a257a5344eff006437f1f966ea80607a5e5",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-16 05:54:57 UTC",
    "User": "root"
  },
  "Author": "Huan Cheng [aut, cre] (ORCID: <https://orcid.org/0000-0002-2552-7656>)",
  "Maintainer": "Huan Cheng <hcheng1118@hotmail.com>",
  "MD5sum": "5f18b2663084696cb72ca3f48c7a5bd4",
  "_user": "hcheng99",
  "_type": "src",
  "_file": "nphPower_1.1.0.tar.gz",
  "_fileid": "643eabb55f21324163f03f320640f4b51c002edd70ac695482e3dd61a4ce7976",
  "_filesize": 480076,
  "_sha256": "643eabb55f21324163f03f320640f4b51c002edd70ac695482e3dd61a4ce7976",
  "_created": "2026-05-16T05:54:57.000Z",
  "_published": "2026-06-02T18:51:54.902Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79147794446,
      "time": 151,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7030995835"
    },
    {
      "job": 79147794863,
      "time": 124,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7030993095"
    },
    {
      "job": 79147794532,
      "time": 134,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7030998155"
    },
    {
      "job": 79147794698,
      "time": 161,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7031002807"
    },
    {
      "job": 79147793976,
      "time": 138,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7030981109"
    },
    {
      "job": 79147793996,
      "time": 103,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7366970258"
    },
    {
      "job": 79147794352,
      "time": 109,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7030992020"
    },
    {
      "job": 79147794609,
      "time": 82,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7030988949"
    },
    {
      "job": 79147794358,
      "time": 134,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7030994034"
    }
  ],
  "_buildurl": "https://github.com/r-universe/hcheng99/actions/runs/25954326332",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/hcheng99/nphpower",
  "_commit": {
    "id": "6ef23a257a5344eff006437f1f966ea80607a5e5",
    "author": "huan cheng <hcheng1118@Hotmail.com>",
    "committer": "huan cheng <hcheng1118@Hotmail.com>",
    "message": "Initial commit\n",
    "time": 1711396426
  },
  "_maintainer": {
    "name": "Huan Cheng",
    "email": "hcheng1118@hotmail.com",
    "login": "hcheng99",
    "uuid": 73718500,
    "orcid": "0000-0002-2552-7656"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "zoo",
      "role": "Imports"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    }
  ],
  "_owner": "hcheng99",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "hcheng99",
      "count": 2,
      "uuid": 73718500
    }
  ],
  "_userbio": {
    "uuid": 73718500,
    "type": "user",
    "name": "hcheng99"
  },
  "_downloads": {
    "count": 222,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/nphPower"
  },
  "_devurl": "https://github.com/hcheng99/nphpower",
  "_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/nphPower.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/hcheng99/nphpower",
  "_realowner": "hcheng99",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2021-12-01"
    },
    {
      "version": "1.1.0",
      "date": "2024-03-28"
    }
  ],
  "_exports": [
    "cal_event",
    "cureHR",
    "evalfup",
    "gen.wgt",
    "MaxLRtest",
    "n2pwr.NPH",
    "plotHazSurv",
    "projection.test",
    "pwr2n.LR",
    "pwr2n.NPH",
    "simu.trial"
  ],
  "_datasets": [
    {
      "name": "lung",
      "title": "Lung cancer data set",
      "object": "lung",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Therapy",
        "Cell",
        "SurvTime",
        "Kps",
        "DiagTime",
        "Age",
        "Prior",
        "Treatment",
        "censor",
        "drop"
      ],
      "rows": 137,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "cal_event",
      "title": "Event Rate Calculation",
      "topics": [
        "cal_event"
      ]
    },
    {
      "page": "cureHR",
      "title": "Control hazard and hazard ratio generation function",
      "topics": [
        "cureHR"
      ]
    },
    {
      "page": "evalfup",
      "title": "Visualization of the Relationship between Follow-up and Sample Size",
      "topics": [
        "evalfup"
      ]
    },
    {
      "page": "gen.wgt",
      "title": "Weight Function Generation",
      "topics": [
        "gen.wgt"
      ]
    },
    {
      "page": "lung",
      "title": "Lung cancer data set",
      "topics": [
        "lung"
      ]
    },
    {
      "page": "MaxLRtest",
      "title": "Maximum Weighted Logrank Test",
      "topics": [
        "MaxLRtest"
      ]
    },
    {
      "page": "n2pwr.NPH",
      "title": "Power Calculation with Combination Test",
      "topics": [
        "n2pwr.NPH"
      ]
    },
    {
      "page": "plot.MaxLR",
      "title": "Graphical Display of Weight Functions",
      "topics": [
        "plot.MaxLR"
      ]
    },
    {
      "page": "plot.NPHpwr",
      "title": "Graphical Display of Design Parameters in Sample Size Calculation",
      "topics": [
        "plot.NPHpwr"
      ]
    },
    {
      "page": "plotHazSurv",
      "title": "Graphic Display of Hazard and Survival Function",
      "topics": [
        "plotHazSurv"
      ]
    },
    {
      "page": "projection.test",
      "title": "Projection test",
      "topics": [
        "projection.test"
      ]
    },
    {
      "page": "pwr2n.LR",
      "title": "Sample Size Calculation under Proportional Hazards",
      "topics": [
        "phsize",
        "pwr2n.LR"
      ]
    },
    {
      "page": "pwr2n.NPH",
      "title": "Sample Size Calculation with Combination Test",
      "topics": [
        "pwr2n.NPH"
      ]
    },
    {
      "page": "simu.trial",
      "title": "Simulate Survival Trial Data",
      "topics": [
        "simu.trial"
      ]
    },
    {
      "page": "summary.NPHpwr",
      "title": "Summary of the 'pwr2n.NPH' function",
      "topics": [
        "summary.NPHpwr"
      ]
    }
  ],
  "_readme": "https://github.com/hcheng99/nphpower/raw/HEAD/README.md",
  "_rundeps": [
    "lattice",
    "MASS",
    "Matrix",
    "mvtnorm",
    "survival",
    "zoo"
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "nphpower",
  "_universes": [
    "hcheng99"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-05-16T05:57:13.000Z",
      "distro": "noble",
      "commit": "6ef23a257a5344eff006437f1f966ea80607a5e5",
      "fileid": "411cfeea104bcf8902f1d5b7ea79e1459acdc55568f8b18e55bbc5010f45c214",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/hcheng99/actions/runs/25954326332"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-05-16T05:56:49.000Z",
      "distro": "noble",
      "commit": "6ef23a257a5344eff006437f1f966ea80607a5e5",
      "fileid": "6519dde7cb18d3dc05b2e2365e7ed394ba92ee80bc5ae88f2f3ae70b74ae57dd",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/hcheng99/actions/runs/25954326332"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-05-16T05:57:52.000Z",
      "commit": "6ef23a257a5344eff006437f1f966ea80607a5e5",
      "fileid": "a35fe305310424b0cd482426e2359a1352df307c1df8f74fb66670cd1252d0b1",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/hcheng99/actions/runs/25954326332"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-05-16T05:58:35.000Z",
      "commit": "6ef23a257a5344eff006437f1f966ea80607a5e5",
      "fileid": "c396084ce15b4cd405e904a3371fbcf09d2507245bdd773a354a3f8c41f02a54",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/hcheng99/actions/runs/25954326332"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-05-16T05:56:31.000Z",
      "commit": "6ef23a257a5344eff006437f1f966ea80607a5e5",
      "fileid": "764e9efd8b9c02dc7bb33f66bf9bc515f628bf8ef2d648880d26584603e8a2bb",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/hcheng99/actions/runs/25954326332"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-05-16T05:56:03.000Z",
      "commit": "6ef23a257a5344eff006437f1f966ea80607a5e5",
      "fileid": "eb1a4bf7bdef9b655edb9e6935080e10045f089a2c5445689940f21b95488996",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/hcheng99/actions/runs/25954326332"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-05-16T05:56:51.000Z",
      "commit": "6ef23a257a5344eff006437f1f966ea80607a5e5",
      "fileid": "18f0b3378a5b6aa44b00a19dbb8898f208caacd1f3dd276836e528cabfa44fdd",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/hcheng99/actions/runs/25954326332"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.0",
      "date": "2026-06-02T18:51:37.000Z",
      "commit": "6ef23a257a5344eff006437f1f966ea80607a5e5",
      "fileid": "0988ff61bf4aacec09d3d82d400ea1dfc7b8a4c48dfd9719a46a83aca2db9aa3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hcheng99/actions/runs/25954326332"
    }
  ]
}