Package: simPH 1.3.13

simPH: Simulate and Plot Estimates from Cox Proportional Hazards Models

Simulates and plots quantities of interest (relative hazards, first differences, and hazard ratios) for linear coefficients, multiplicative interactions, polynomials, penalised splines, and non-proportional hazards, as well as stratified survival curves from Cox Proportional Hazard models. It also simulates and plots marginal effects for multiplicative interactions. Methods described in Gandrud (2015) <doi:10.18637/jss.v065.i03>.

Authors:Christopher Gandrud [aut, cre]

simPH_1.3.13.tar.gz
simPH_1.3.13.zip(r-4.5)simPH_1.3.13.zip(r-4.4)simPH_1.3.13.zip(r-4.3)
simPH_1.3.13.tgz(r-4.4-any)simPH_1.3.13.tgz(r-4.3-any)
simPH_1.3.13.tar.gz(r-4.5-noble)simPH_1.3.13.tar.gz(r-4.4-noble)
simPH_1.3.13.tgz(r-4.4-emscripten)simPH_1.3.13.tgz(r-4.3-emscripten)
simPH.pdf |simPH.html
simPH/json (API)
NEWS

# Install 'simPH' in R:
install.packages('simPH', repos = c('https://christophergandrud.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/christophergandrud/simph/issues

Datasets:

On CRAN:

6.22 score 14 stars 47 scripts 492 downloads 5 mentions 11 exports 38 dependencies

Last updated 3 years agofrom:2b69aaf9b6. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 02 2024
R-4.5-winNOTENov 02 2024
R-4.5-linuxNOTENov 02 2024
R-4.4-winNOTENov 02 2024
R-4.4-macNOTENov 02 2024
R-4.3-winOKNov 02 2024
R-4.3-macOKNov 02 2024

Exports:coxsimInteractcoxsimLinearcoxsimPolycoxsimSplinecoxsimtvcggfitStrataMinMaxLinessetXlsimGGSurvExpandtvc

Dependencies:clicolorspacedata.tabledplyrfansifarvergenericsggplot2gluegridExtragtableisobandlabelinglatticelazyevallifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigquadprogR6RColorBrewerrlangscalesstringistringrsurvivaltibbletidyselectutf8vctrsviridisLitewithr

An overview of simPH

Rendered fromsimPH-overview.Rnwusingknitr::knitron Nov 02 2024.

Last update: 2020-12-05
Started: 2014-04-04

Readme and manuals

Help Manual

Help pageTopics
Convert a coxsim class object into a data frameas.data.frame.coxsim
A data set from Carpenter (2002).CarpenterFdaData
Simulate quantities of interest for linear multiplicative interactions from Cox Proportional Hazards modelscoxsimInteract
Simulate quantities of interest for covariates from Cox Proportional Hazards models that are not interacted with time or nonlinearly transformedcoxsimLinear
Simulate quantities of interest for a range of values for a polynomial nonlinear effect from Cox Proportional Hazards modelscoxsimPoly
Simulate quantities of interest for penalized splines from Cox Proportional Hazards modelscoxsimSpline
Simulate time-interactive quantities of interest from Cox Proportional Hazards modelscoxsimtvc
Graph fitted stratified survival curves from Cox Proportional Hazards modelsggfitStrata
A data set from Golub & Steunenberg (2007)GolubEUPData
Simulated HIV patient data from UCLA IDREhmohiv
Transform the simulation object to include only the min and max of the constricted intervals, as well as the lower and upper bounds of the middle 50 percent of the constricted intervalsMinMaxLines
Create a sequence of Xl valuessetXl
A method for plotting simulation objects created by simPHsimGG
Plot simulated linear multiplicative interactions from Cox Proportional Hazards ModelssimGG.siminteract
Plot simulated linear, non-time interacted quantities of interest from Cox Proportional Hazards ModelssimGG.simlinear
Plot simulated polynomial quantities of interest from Cox Proportional Hazards ModelssimGG.simpoly
Plot simulated penalised spline hazards from Cox Proportional Hazards ModelssimGG.simspline
Plot simulated time-interactive hazard ratios or stratified time-interactive hazard rates from Cox Proportional Hazards ModelssimGG.simtvc
An R package for simulating and plotting quantities of interest from Cox Proportional Hazard models.simPH
Convert a data frame of non-equal interval continuous observations into equal interval continuous observationsSurvExpand
Create a time interaction variabletvc