Package: simPH 1.3.15

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.15.tar.gz
simPH_1.3.15.zip(r-4.7)simPH_1.3.15.zip(r-4.6)simPH_1.3.15.zip(r-4.5)
simPH_1.3.15.tgz(r-4.6-any)simPH_1.3.15.tgz(r-4.5-any)
simPH_1.3.15.tar.gz(r-4.7-any)simPH_1.3.15.tar.gz(r-4.6-any)
simPH_1.3.15.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
simPH/json (API)
NEWS

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

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

Datasets:

On CRAN:

Conda:

5.28 score 14 stars 55 scripts 356 downloads 5 mentions 11 exports 36 dependencies

Last updated from:88295c5ef6. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK174
source / vignettesOK174
linux-release-x86_64OK175
macos-release-arm64OK121
macos-oldrel-arm64OK116
windows-develOK126
windows-releaseOK114
windows-oldrelOK104
wasm-releaseOK120

Exports:coxsimInteractcoxsimLinearcoxsimPolycoxsimSplinecoxsimtvcggfitStrataMinMaxLinessetXlsimGGSurvExpandtvc

Dependencies:clicpp11data.tabledplyrfarvergenericsggplot2gluegridExtragtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvnlmepillarpkgconfigquadprogR6RColorBrewerrlangS7scalesstringistringrsurvivaltibbletidyselectutf8vctrsviridisLitewithr

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