{
  "_id": "6a100291acfb0bcc41c7c494",
  "Package": "nph",
  "Title": "Planning and Analysing Survival Studies under Non-Proportional\nHazards",
  "Version": "2.1",
  "Authors@R": "c(\nperson(\"Robin\", \"Ristl\", email = \"robin.ristl@meduniwien.ac.at\", role = c(\"aut\", \"cre\")),\nperson(\"Nicolas\", \"Ballarini\", email = \"nicolas.ballarini@meduniwien.ac.at\", role = c(\"ctb\")))",
  "Description": "Piecewise constant hazard functions are used to flexibly\nmodel survival distributions with non-proportional hazards and\nto simulate data from the specified distributions. A function\nto calculate weighted log-rank tests for the comparison of two\nhazard functions is included. Also, a function to calculate a\ntest using the maximum of a set of test statistics from\nweighted log-rank tests (MaxCombo test) is provided. This test\nutilizes the asymptotic multivariate normal joint distribution\nof the separate test statistics. The correlation is estimated\nfrom the data. These methods are described in Ristl et al.\n(2021) <doi:10.1002/pst.2062>. Finally, a function is provided\nfor the estimation and inferential statistics of various\nparameters that quantify the difference between two survival\ncurves. Eligible parameters are differences in survival\nprobabilities, log survival probabilities, complementary log\nlog (cloglog) transformed survival probabilities, quantiles of\nthe survival functions, log transformed quantiles, restricted\nmean survival times, as well as an average hazard ratio, the\nCox model score statistic (logrank statistic), and the\nCox-model hazard ratio. Adjustments for multiple testing and\nsimultaneous confidence intervals are calculated using a\nmultivariate normal approximation to the set of selected\nparameters.",
  "Date": "2022-05-16",
  "Maintainer": "Robin Ristl <robin.ristl@meduniwien.ac.at>",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.1.2",
  "NeedsCompilation": "no",
  "VignetteBuilder": "knitr",
  "Packaged": {
    "Date": "2026-05-22 07:11:46 UTC",
    "User": "root"
  },
  "Author": "Robin Ristl [aut, cre], Nicolas Ballarini [ctb]",
  "Repository": "https://rmaster1.r-universe.dev",
  "Date/Publication": "2022-05-16 22:20:05 UTC",
  "RemoteUrl": "https://github.com/cran/nph",
  "RemoteRef": "HEAD",
  "RemoteSha": "e2fa54d4e719b85ad2c40e9ce8b6b0010bea4f1c",
  "MD5sum": "ceace331614599a4b3aa50ca88a1de70",
  "_user": "rmaster1",
  "_type": "src",
  "_file": "nph_2.1.tar.gz",
  "_fileid": "24bae129bea081bbd320893f4a79dd44e5d138d212ff0bfb59be04d9ff2eb8c3",
  "_filesize": 4231581,
  "_sha256": "24bae129bea081bbd320893f4a79dd44e5d138d212ff0bfb59be04d9ff2eb8c3",
  "_created": "2026-05-22T07:11:46.000Z",
  "_published": "2026-05-22T07:15:29.842Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77333379795,
      "time": 177,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7154862000"
    },
    {
      "job": 77333379793,
      "time": 170,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7154860262"
    },
    {
      "job": 77333379831,
      "time": 113,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7154844688"
    },
    {
      "job": 77333379862,
      "time": 143,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7154852514"
    },
    {
      "job": 77332907746,
      "time": 214,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7154811233"
    },
    {
      "job": 77333379777,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7154846011"
    },
    {
      "job": 77333379834,
      "time": 127,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7154848222"
    },
    {
      "job": 77333379841,
      "time": 117,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7154845303"
    },
    {
      "job": 77333379802,
      "time": 116,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7154845179"
    }
  ],
  "_buildurl": "https://github.com/r-universe/rmaster1/actions/runs/26273704403",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/nph",
  "_commit": {
    "id": "e2fa54d4e719b85ad2c40e9ce8b6b0010bea4f1c",
    "author": "Robin Ristl <robin.ristl@meduniwien.ac.at>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 2.1\n",
    "time": 1652739605
  },
  "_maintainer": {
    "name": "Robin Ristl",
    "email": "robin.ristl@meduniwien.ac.at",
    "login": "rmaster1",
    "description": "",
    "uuid": 48990116
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "muhaz",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "multcomp",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "shiny",
      "role": "Suggests"
    },
    {
      "package": "shinycssloaders",
      "role": "Suggests"
    },
    {
      "package": "formatR",
      "role": "Suggests"
    },
    {
      "package": "styler",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 3,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "rmaster1",
      "count": 3,
      "uuid": 48990116
    }
  ],
  "_userbio": {
    "uuid": 48990116,
    "type": "user",
    "name": "rmaster1"
  },
  "_downloads": {
    "count": 432,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/nph"
  },
  "_mentions": 2,
  "_searchresults": 44,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/nph.html",
    "manual.pdf"
  ],
  "_realowner": "rmaster1",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.9",
      "date": "2019-08-23"
    },
    {
      "version": "2.0",
      "date": "2020-01-10"
    },
    {
      "version": "2.1",
      "date": "2022-05-17"
    }
  ],
  "_exports": [
    "logrank.maxtest",
    "logrank.test",
    "m2r",
    "nph_gui",
    "nphparams",
    "pchaz",
    "plot_diagram",
    "plot_shhr",
    "plot_subgroups",
    "pop_pchaz",
    "rSurv_conditional_fun",
    "rSurv_fun",
    "sample_conditional_fun",
    "sample_fun",
    "subpop_pchaz"
  ],
  "_datasets": [
    {
      "name": "pembro",
      "title": "Reconstructed Data Set Based On Survival Curves In Burtess et al. 2019",
      "object": "pembro",
      "file": "pembro.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "time",
        "event",
        "group"
      ],
      "rows": 601,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "logrank.maxtest",
      "title": "Maximum combination (MaxCombo) log-rank test",
      "topics": [
        "logrank.maxtest",
        "print.wlogrank_max"
      ]
    },
    {
      "page": "logrank.test",
      "title": "Weighted log-rank test",
      "topics": [
        "logrank.test",
        "print.wlogrank"
      ]
    },
    {
      "page": "m2r",
      "title": "Transform median time into rate",
      "topics": [
        "m2r"
      ]
    },
    {
      "page": "nph_gui",
      "title": "Launch a GUI (shiny app) for the nph package",
      "topics": [
        "nph_gui"
      ]
    },
    {
      "page": "nphparams",
      "title": "Simultaneous Inference For Parameters Quantifying Differences Between Two Survival Functions",
      "topics": [
        "nphparams"
      ]
    },
    {
      "page": "pchaz",
      "title": "Calculate survival for piecewise constant hazard",
      "topics": [
        "pchaz"
      ]
    },
    {
      "page": "pembro",
      "title": "Reconstructed Data Set Based On Survival Curves In Burtess et al. 2019",
      "topics": [
        "pembro"
      ]
    },
    {
      "page": "plot_diagram",
      "title": "Draw a state space figure",
      "topics": [
        "plot_diagram"
      ]
    },
    {
      "page": "plot_shhr",
      "title": "Plot of survival, hazard and hazard ratio of two groups as a function of time",
      "topics": [
        "plot_shhr"
      ]
    },
    {
      "page": "plot_subgroups",
      "title": "Draw a population composition plot",
      "topics": [
        "plot_subgroups"
      ]
    },
    {
      "page": "plot.mixpch",
      "title": "Plot mixpch Objects",
      "topics": [
        "plot.mixpch"
      ]
    },
    {
      "page": "plot.nphparams",
      "title": "Plot nphparams Objects",
      "topics": [
        "plot.nphparams"
      ]
    },
    {
      "page": "pop_pchaz",
      "title": "Calculate survival for piecewise constant hazards with change after random time and mixture of subpopulations",
      "topics": [
        "pop_pchaz"
      ]
    },
    {
      "page": "print.nphparams",
      "title": "Print nphparams Objects",
      "topics": [
        "print.nphparams"
      ]
    },
    {
      "page": "rSurv_conditional_fun",
      "title": "Draw conditional random survival times from mixpch object.",
      "topics": [
        "rSurv_conditional_fun"
      ]
    },
    {
      "page": "rSurv_fun",
      "title": "Draw random survival times from mixpch object.",
      "topics": [
        "rSurv_fun"
      ]
    },
    {
      "page": "sample_conditional_fun",
      "title": "Draw conditional survival times based on study settings",
      "topics": [
        "sample_conditional_fun"
      ]
    },
    {
      "page": "sample_fun",
      "title": "Draw survival times based on study settings",
      "topics": [
        "sample_fun"
      ]
    },
    {
      "page": "subpop_pchaz",
      "title": "Calculate survival for piecewise constant hazards with change after random time",
      "topics": [
        "subpop_pchaz"
      ]
    }
  ],
  "_rundeps": [
    "cli",
    "codetools",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "MASS",
    "Matrix",
    "muhaz",
    "multcomp",
    "mvtnorm",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "sandwich",
    "scales",
    "survival",
    "TH.data",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "examples.Rmd",
      "filename": "examples.html",
      "title": "| nph Examples: Delayed treatment effects, treatment switches and heterogeneous patient populations: how to design and analyse RCTs in oncology",
      "author": "Robin Ristl, Nicolas Ballarini, Heiko Goette, Armin Schueler, Martin Posch, Franz Koenig",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Progression of disease",
        "Subgroup with differential effect",
        "Delayed Effect",
        "Delayed Effect and Subgroup with differential effect",
        "Treatment Switchers",
        "Harmful drug in a subgroup but beneficial in the complement.",
        "Switchers and subgroup with differential effect."
      ],
      "created": "2019-08-23 09:50:02",
      "modified": "2020-01-10 15:50:02",
      "commits": 2
    },
    {
      "source": "usage.Rmd",
      "filename": "usage.html",
      "title": "Introduction to nph and Usage Instructions",
      "author": "Robin Ristl, Nicolas Ballarini",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Installation",
        "Getting started",
        "Basics",
        "Creating the population model with pop_pchaz",
        "Creating a simulated dataset with sample_fun",
        "The weighted log-rank test and the max-LRtest"
      ],
      "created": "2019-08-23 09:50:02",
      "modified": "2020-01-10 15:50:02",
      "commits": 2
    }
  ],
  "_score": 4.199755177253475,
  "_indexed": true,
  "_nocasepkg": "nph",
  "_universes": [
    "rmaster1"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1",
      "date": "2026-05-22T07:14:09.000Z",
      "distro": "noble",
      "commit": "e2fa54d4e719b85ad2c40e9ce8b6b0010bea4f1c",
      "fileid": "585567b5e347e4fbf78bd402ddd1bd136aa32d7583dc390d2c1ca37149078baf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rmaster1/actions/runs/26273704403"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1",
      "date": "2026-05-22T07:14:10.000Z",
      "distro": "noble",
      "commit": "e2fa54d4e719b85ad2c40e9ce8b6b0010bea4f1c",
      "fileid": "ed7b6f81bd9e16a6c1e63140d969967d2a96b8d628d5dd2702de2cbc3317eee9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rmaster1/actions/runs/26273704403"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1",
      "date": "2026-05-22T07:13:29.000Z",
      "commit": "e2fa54d4e719b85ad2c40e9ce8b6b0010bea4f1c",
      "fileid": "a18ee43a576cae6ebc110d64fe421190bcffe1a7e512ef07986d6c264f32db50",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rmaster1/actions/runs/26273704403"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.1",
      "date": "2026-05-22T07:13:51.000Z",
      "commit": "e2fa54d4e719b85ad2c40e9ce8b6b0010bea4f1c",
      "fileid": "6811c717573afa16263963d865f157a2c20bcf6dffb3fc8c1d2fcb15903e936c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rmaster1/actions/runs/26273704403"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1",
      "date": "2026-05-22T07:14:08.000Z",
      "commit": "e2fa54d4e719b85ad2c40e9ce8b6b0010bea4f1c",
      "fileid": "b303b965ba83fce6acfe0873e05ff4a551a6e574b7ec885da648f8351652ccc9",
      "status": "success",
      "buildurl": "https://github.com/r-universe/rmaster1/actions/runs/26273704403"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1",
      "date": "2026-05-22T07:13:17.000Z",
      "commit": "e2fa54d4e719b85ad2c40e9ce8b6b0010bea4f1c",
      "fileid": "59d3dbf18ce8c55e08d2addefcf641cbf7ed2c008aa471778c4fa53c3481b2fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rmaster1/actions/runs/26273704403"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.1",
      "date": "2026-05-22T07:13:08.000Z",
      "commit": "e2fa54d4e719b85ad2c40e9ce8b6b0010bea4f1c",
      "fileid": "591cbbf4b797c2cdc870e9d14d455d0fbaeb85c558e47d01ff1517d71f42de0b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rmaster1/actions/runs/26273704403"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.1",
      "date": "2026-05-22T07:13:08.000Z",
      "commit": "e2fa54d4e719b85ad2c40e9ce8b6b0010bea4f1c",
      "fileid": "3c43744fa7687e0a3418123292826c37e7627114d26f07b0e16377bb4b66170c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/rmaster1/actions/runs/26273704403"
    }
  ]
}