Package SimSCRPiecewise

Similar documents
Package CPE. R topics documented: February 19, 2015

Package sbgcop. May 29, 2018

Multistate models and recurrent event models

Package JointModel. R topics documented: June 9, Title Semiparametric Joint Models for Longitudinal and Counting Processes Version 1.

Package comparec. R topics documented: February 19, Type Package

Package covtest. R topics documented:

Package BayesNI. February 19, 2015

Multistate models and recurrent event models

Package ICBayes. September 24, 2017

Package reinforcedpred

Package elhmc. R topics documented: July 4, Type Package

Package MultisiteMediation

Package ICGOR. January 13, 2017

Package My.stepwise. June 29, 2017

Package BNN. February 2, 2018

Package gtheory. October 30, 2016

Package pssm. March 1, 2017

The nltm Package. July 24, 2006

Package MiRKATS. May 30, 2016

Package CoxRidge. February 27, 2015

Package invgamma. May 7, 2017

Package TSF. July 15, 2017

Package horseshoe. November 8, 2016

Package spef. February 26, 2018

Package survidinri. February 20, 2015

Package TwoStepCLogit

Package gwqs. R topics documented: May 7, Type Package. Title Generalized Weighted Quantile Sum Regression. Version 1.1.0

Package MPkn. May 7, 2018

Package GORCure. January 13, 2017

Package ARCensReg. September 11, 2016

Package HIMA. November 8, 2017

Package OGI. December 20, 2017

Package Grace. R topics documented: April 9, Type Package

Multi-state Models: An Overview

Package threg. August 10, 2015

Package EMVS. April 24, 2018

A Bayesian Nonparametric Approach to Causal Inference for Semi-competing risks

Package sodavis. May 13, 2018

Package LIStest. February 19, 2015

Package FinCovRegularization

Package ShrinkCovMat

Package crrsc. R topics documented: February 19, 2015

Package IGG. R topics documented: April 9, 2018

Supplemental Materials to: Hierarchical models for semi-competing risks data with application to quality of end-of-life care for pancreatic cancer

Hierarchical models for semi-competing risks data with application to quality of end-of-life care for pancreatic cancer

Package idmtpreg. February 27, 2018

Package effectfusion

Package rgabriel. February 20, 2015

Package Rsurrogate. October 20, 2016

Package IUPS. February 19, 2015

Package darts. February 19, 2015

Package TruncatedNormal

The sbgcop Package. March 9, 2007

Package RcppSMC. March 18, 2018

Modelling geoadditive survival data

Package Tcomp. June 6, 2018

Package SK. May 16, 2018

Package covsep. May 6, 2018

Package clogitboost. R topics documented: December 21, 2015

Package RZigZag. April 30, 2018

Package eel. September 1, 2015

Package penmsm. R topics documented: February 20, Type Package

Package flexcwm. R topics documented: July 11, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.0.

Package noncompliance

Part IV Extensions: Competing Risks Endpoints and Non-Parametric AUC(t) Estimation

Package skellam. R topics documented: December 15, Version Date

Package scpdsi. November 18, 2018

Package flexcwm. R topics documented: July 2, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.1.

Package netcoh. May 2, 2016

Package jmcm. November 25, 2017

Package icmm. October 12, 2017

Package basad. November 20, 2017

Package hds. December 31, 2016

Package polypoly. R topics documented: May 27, 2017

Package MAVE. May 20, 2018

3003 Cure. F. P. Treasure

Package factorqr. R topics documented: February 19, 2015

Package bigtime. November 9, 2017

Package severity. February 20, 2015

Package esreg. August 22, 2017

Package BayesTreePrior

Package CompQuadForm

Extensions of Cox Model for Non-Proportional Hazards Purpose

Package MicroMacroMultilevel

Package WaveletArima

Package metafuse. October 17, 2016

Package SPreFuGED. July 29, 2016

Package drgee. November 8, 2016

A multi-state model for the prognosis of non-mild acute pancreatitis

Package anoint. July 19, 2015

Package EnergyOnlineCPM

Package LindleyR. June 23, 2016

Package scio. February 20, 2015

Package bhrcr. November 12, 2018

Package varband. November 7, 2016

A general mixed model approach for spatio-temporal regression data

Package xdcclarge. R topics documented: July 12, Type Package

Package Delaporte. August 13, 2017

Package thief. R topics documented: January 24, Version 0.3 Title Temporal Hierarchical Forecasting

Package SimCorMultRes

Transcription:

Package SimSCRPiecewise July 27, 2016 Type Package Title 'Simulates Univariate and Semi-Competing Risks Data Given Covariates and Piecewise Exponential Baseline Hazards' Version 0.1.1 Author Andrew G Chapple Maintainer Andrew G Chapple <Andrew.G.Chapple@rice.edu> Description 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 semicompeting 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. License GPL-2 LazyData TRUE RoxygenNote 5.0.1 NeedsCompilation no Repository CRAN Date/Publication 2016-07-27 23:58:50 R topics documented: SimSCRPiecewise..................................... 2 SimUNIVPiecewise..................................... 3 Index 5 1

2 SimSCRPiecewise SimSCRPiecewise SimSCRPiecewise Description This function simulates 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 and baseline hazard functions. Usage SimSCRPiecewise(x1, x2, x3, beta1, beta2, beta3, s1, s2, s3, lam1, lam2, lam3, gamma, cens) Arguments x1 x2 x3 beta1 beta2 beta3 s1 s2 s3 lam1 lam2 lam3 gamma cens - Matrix of patient covariates for hazard 1 simulation - Matrix of patient covariates for hazard 2 simulation - Matrix of patient covariates for hazard 3 simulation - vector of size ncol(x1) that is the true regression coefficient vector for hazard 1 - vector of size ncol(x2) that is the true regression coefficient vector for hazard 2 - vector of size ncol(x3) that is the true regression coefficient vector for hazard 3 split point locations of baseline hazard 1 split point locations of baseline hazard 2 split point locations of baseline hazard 3 - vector of the same size as s1. This vector is the true baseline hazard 1 heights and the last entry represents the height on the interval [max(s1),infinity) - vector of the same size as s2. This vector is the true baseline hazard 2 heights and the last entry represents the height on the interval [max(s2),infinity) - vector of the same size as s3. This vector is the true baseline hazard 3 heights and the last entry represents the height on the interval [max(s3),infinity) - vector containing patient frailties. - This is the administrative right censoring time of the study. All patients who have survival outcomes after cens have survival times set to cens.

SimUNIVPiecewise 3 Value Returns a list of size 4 containing the semi-competing risks simulated data. Entry 1 contains the non-terminal event times for the patients. Entry 2 contains the terminal event times for the patients. Entry 3 contains the patient indicators for whether or not a patient experienced a non-terminal event prior to death. Entry 4 contains the patient indicators for whether or not they experienced a terminal event. References Lee, K. H., Haneuse, S., Schrag, D. and Dominici, F. (2015), Bayesian semiparametric analysis of semicompeting risks data: investigating hospital readmission after a pancreatic cancer diagnosis. Journal of the Royal Statistical Society: Series C (Applied Statistics), 64: 253-273. Examples ##Set number of patients and covariate matrices n=100 x1=matrix(rnorm(n*10,0,1),nrow=n) x2=x1 x3=x1 ##Sets up true covariate vectors beta1=rnorm(10,0,1) beta2=rnorm(10,0,1) beta3=c(3,rep(0,9)) ##Sets up three baseline hazard split locations s1=c(0,7,30,100,1000) s2=c(0,50,100,2000) s3=c(0,10,40,50,500) ##Sets up baseline hazard heights lam1=c(.1,.1,.3,.1,.1) lam2=c(.2,.3,.1,.1) lam3=c(.1,.3,.2,.2,.1) gamma=rgamma(100,1,1) ##Runs Function and returns a list of simulated data X=SimSCRPiecewise(x1,x2,x3,beta1,beta2,beta3,s1,s2,s3,lam1,lam2,lam3,gamma,1000) X SimUNIVPiecewise SimUnivPiecewise Description Usage This function simulates univariate survival data from a piecewise exponential model with a proportional hazards assumption given a covariate matrix, true beta vector, baseline hazard splits, baseline hazard heights and a right censoring time. SimUNIVPiecewise(x1, beta1, s1, lam1, cens)

4 SimUNIVPiecewise Arguments x1 beta1 s1 lam1 cens - Matrix of patient covariates for hazard 1 simulation - vector of size ncol(x1) that is the true regression coefficient vector for the baseline hazard function split point locations of baseline hazard - vector of the same size as s1. This vector is the true baseline hazard heights and the last entry represents the height on the interval [max(s1),infinity) - This is the administrative right censoring time of the study. All patients who have survival outcomes after cens have survival times set to cens. Value Returns a list of size 4 containing the semi-competing risks simulated data. Entry 1 contains the non-terminal event times for the patients. Entry 2 contains the terminal event times for the patients. Entry 3 contains the patient indicators for whether or not a patient experienced a non-terminal event prior to death. Entry 4 contains the patient indicators for whether or not they experienced a terminal event. References Lee, K. H., Haneuse, S., Schrag, D. and Dominici, F. (2015), Bayesian semiparametric analysis of semicompeting risks data: investigating hospital readmission after a pancreatic cancer diagnosis. Journal of the Royal Statistical Society: Series C (Applied Statistics), 64: 253-273. Examples ##Set number of patients and covariate matrices n=100 x1=matrix(rnorm(n*10,0,1),nrow=n) ##Sets up true covariate vector beta1=rnorm(10,0,1) ##Sets up true baseline hazard split locations s1=c(0,7,30,100,1000) ##Sets up baseline hazard heights lam1=c(.1,.1,.3,.1,.1) ##Runs Function and returns a list of simulated data X=SimUNIVPiecewise(x1,beta1,s1,lam1,1000) X

Index SimSCRPiecewise, 2 SimUNIVPiecewise, 3 5