Learn R Programming

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

simPH (version 1.0)

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. It also simulates and plots marginal effects for multiplicative interactions.

Copy Link

Version

Install

install.packages('simPH')

Monthly Downloads

351

Version

1.0

License

GPL-2 | GPL-3

Maintainer

Christopher Gandrud

Last Published

February 2nd, 2014

Functions in simPH (1.0)

ggfitStrata

Graph fitted stratified survival curves from Cox Proportional Hazards models
coxsimSpline

Simulate quantities of interest for penalized splines from Cox Proportional Hazards models
simGG.simspline

Plot simulated penalised spline hazards from Cox Proportional Hazards Models
tvc

Create a time interaction variable
simGG.siminteract

Plot simulated linear multiplicative interactions from Cox Proportional Hazards Models
simPH

An R package for simulating and plotting quantities of interest from Cox Proportional Hazard models.
CarpenterFdaData

A data set from Carpenter (2002).
coxsimtvc

Simulate time-interactive quantities of interest from Cox Proportional Hazards models
coxsimLinear

Simulate quantities of interest for linear covariates that are not interacted with time from Cox Proportional Hazards models
simGG.simtvc

Plot simulated time-interactive hazard ratios or stratified time-interactive hazard rates from Cox Proportional Hazards Models
GolubEUPData

A data set from Golub & Steunenberg (2007)
simGG.simpoly

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

Plot simulated linear, non-time interacted quantities of interest from Cox Proportional Hazards Models
coxsimPoly

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

A method for plotting simulation objects created by simPH
coxsimInteract

Simulate quantities of interest for linear multiplicative interactions from Cox Proportional Hazards models