Planning and Analysing Survival Studies under Non-Proportional Hazards


[Up] [Top]

Documentation for package ‘nph’ version 2.0

Help Pages

logrank.maxtest Maximum log-rank test
logrank.test Weighted log-rank test
m2r Transform median time into rate
nph_gui Launch a GUI (shiny app) for the nph package
pchaz Calculate survival for piecewise constant hazard
plot.mixpch Plot mixpch Objects
plot_diagram Draw a state space figure
plot_shhr Plot of survival, hazard and hazard ratio of two groups as a function of time
plot_subgroups Draw a population composition plot
pop_pchaz Calculate survival for piecewise constant hazards with change after random time and mixture of subpopulations
print.wlogrank Weighted log-rank test
print.wlogrank_max Maximum log-rank test
rSurv_conditional_fun Draw conditional random survival times from mixpch object.
rSurv_fun Draw random survival times from mixpch object.
sample_conditional_fun Draw conditional survival times based on study settings
sample_fun Draw survival times based on study settings
subpop_pchaz Calculate survival for piecewise constant hazards with change after random time