SimSCRPiecewise: 'Simulates Univariate and Semi-Competing Risks Data Given Covariates and Piecewise Exponential Baseline Hazards'

Contains two functions for simulating survival data from piecewise exponential hazards with a proportional hazards adjustment for covariates. The first function SimUNIVPiecewise simulates univariate survival data based on a piecewise exponential hazard, covariate matrix and true regression vector. The second function SimSCRPiecewise semi-competing risks data based on three piecewise exponential hazards, three true regression vectors and three matrices of patient covariates (which can be different or the same). This simulates from the Semi-Markov model of Lee et al (2015) given patient covariates, regression parameters, patient frailties and baseline hazard functions.

Getting started

Package details

AuthorAndrew G Chapple
MaintainerAndrew G Chapple <Andrew.G.Chapple@rice.edu>
LicenseGPL-2
Version0.1.1
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("SimSCRPiecewise")

Try the SimSCRPiecewise package in your browser

Any scripts or data that you put into this service are public.

SimSCRPiecewise documentation built on May 2, 2019, 10:34 a.m.