Learn R Programming

⚠️There's a newer version (1.3.15) of this package.Take me there.

simPH (version 0.7.2)

Tools for simulating and plotting quantities of interest estimated from Cox Proportional Hazards models.

Description

The package 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.

Copy Link

Version

Install

install.packages('simPH')

Monthly Downloads

351

Version

0.7.2

License

GPL (>= 3)

Maintainer

Christopher Gandrud

Last Published

July 28th, 2013

Functions in simPH (0.7.2)

CarpenterFdaData

A data set from Carpenter (2002).
simGG

A method for plotting simulation objects created by simPH.
simGG.simpoly

Plot simulated polynomial quantities of interest from Cox Proportional Hazards Models.
simGG.simspline

Plot simulated penalised spline hazards.
GolubEUPData

A data set from Golub & Steunenberg (2007).
ggfitStrata

Graph fitted stratified survival curves
coxsimPoly

Simulate quantities of interest for a range of values for a polynomial nonlinear effect from Cox Proportional Hazards models.
coxsimLinear

Simulate quntities of interest for linear time-constant covariates from Cox Proportional Hazards models.
coxsimInteract

Simulate quantities of interest for linear multiplicative interactions from coxph models.
coxsimtvc

Simulate time-varying quantities of interest from coxph fitted model objects
simGG.siminteract

Plot simulated linear multiplicative interactions.
coxsimSpline

Simulated quantities of interest for penalised splines from coxph models.
tvc

Create a time interaction variable
IntervalConstrict

Constrict simulations to a defined interval.
simGG.simtvc

Plot simulated time-varying hazard ratios or stratified time-varying hazard rates from a simtvc class object using ggplot2
simGG.simlinear

Plot simulated linear time-constant quantities of interest.
SpinBounds

Internal function for finding the lower and upper bound of the shortest probability interval.