Package crrsc. R topics documented: February 19, 2015

Similar documents
Package CoxRidge. February 27, 2015

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

Package threg. August 10, 2015

The nltm Package. July 24, 2006

Package SimSCRPiecewise

Package ICBayes. September 24, 2017

REGRESSION ANALYSIS FOR TIME-TO-EVENT DATA THE PROPORTIONAL HAZARDS (COX) MODEL ST520

Package idmtpreg. February 27, 2018

Multivariable Fractional Polynomials

Multi-state Models: An Overview

Multivariable Fractional Polynomials

Survival Regression Models

Package anoint. July 19, 2015

Multivariate Survival Analysis

Package penalized. February 21, 2018

Package pssm. March 1, 2017

Package survidinri. February 20, 2015

Multistate models and recurrent event models

JOINT REGRESSION MODELING OF TWO CUMULATIVE INCIDENCE FUNCTIONS UNDER AN ADDITIVITY CONSTRAINT AND STATISTICAL ANALYSES OF PILL-MONITORING DATA

Package ShrinkCovMat

Multistate models in survival and event history analysis

SSUI: Presentation Hints 2 My Perspective Software Examples Reliability Areas that need work

Package MonoPoly. December 20, 2017

Multistate models and recurrent event models

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

Package CPE. R topics documented: February 19, 2015

Lecture 8 Stat D. Gillen

Package spef. February 26, 2018

Package ICGOR. January 13, 2017

Journal of Statistical Software

Lecture 7 Time-dependent Covariates in Cox Regression

A Regression Model For Recurrent Events With Distribution Free Correlation Structure

Philosophy and Features of the mstate package

Package gtheory. October 30, 2016

You know I m not goin diss you on the internet Cause my mama taught me better than that I m a survivor (What?) I m not goin give up (What?

Package TwoStepCLogit

Lecture 9. Statistics Survival Analysis. Presented February 23, Dan Gillen Department of Statistics University of California, Irvine

Time-dependent coefficients

9 Estimating the Underlying Survival Distribution for a

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

STAT 5500/6500 Conditional Logistic Regression for Matched Pairs

Package darts. February 19, 2015

Power and Sample Size Calculations with the Additive Hazards Model

Package mlmmm. February 20, 2015

Extensions of Cox Model for Non-Proportional Hazards Purpose

Package clogitboost. R topics documented: December 21, 2015

First Aid Kit for Survival. Hypoxia cohort. Goal. DFS=Clinical + Marker 1/21/2015. Two analyses to exemplify some concepts of survival techniques

Definitions and examples Simple estimation and testing Regression models Goodness of fit for the Cox model. Recap of Part 1. Per Kragh Andersen

Lecture 12. Multivariate Survival Data Statistics Survival Analysis. Presented March 8, 2016

Package covtest. R topics documented:

A fast routine for fitting Cox models with time varying effects

DYNAMIC PREDICTION MODELS FOR DATA WITH COMPETING RISKS. by Qing Liu B.S. Biological Sciences, Shanghai Jiao Tong University, China, 2007

MAS3301 / MAS8311 Biostatistics Part II: Survival

Multi-state models: prediction

Package netcoh. May 2, 2016

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

Chapter 4 Regression Models

Package blme. August 29, 2016

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

4. Comparison of Two (K) Samples

Package sklarsomega. May 24, 2018

Package Rsurrogate. October 20, 2016

Using rjags for survival data with right censoring

Package metansue. July 11, 2018

UNIVERSITY OF CALIFORNIA, SAN DIEGO

β j = coefficient of x j in the model; β = ( β1, β2,

Applied Survival Analysis Lab 10: Analysis of multiple failures

Package MultisiteMediation

Package GORCure. January 13, 2017

Analysis of competing risks data and simulation of data following predened subdistribution hazards

Package multistate. August 3, 2017

Published online: 10 Apr 2012.

DAGStat Event History Analysis.

Package mistwosources

Package CMC. R topics documented: February 19, 2015

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

Chapter 7 Fall Chapter 7 Hypothesis testing Hypotheses of interest: (A) 1-sample

Extensions of Cox Model for Non-Proportional Hazards Purpose

Package esreg. August 22, 2017

Survival Analysis. 732G34 Statistisk analys av komplexa data. Krzysztof Bartoszek

Estimating Causal Effects of Organ Transplantation Treatment Regimes

Package BayesNI. February 19, 2015

The coxvc_1-1-1 package

Package factorqr. R topics documented: February 19, 2015

BIOL 51A - Biostatistics 1 1. Lecture 1: Intro to Biostatistics. Smoking: hazardous? FEV (l) Smoke

CHL 5225 H Crossover Trials. CHL 5225 H Crossover Trials

Package dispmod. March 17, 2018

Sample-weighted semiparametric estimates of cause-specific cumulative incidence using left-/interval censored data from electronic health records

Package complex.surv.dat.sim

Package sodavis. May 13, 2018

1 Introduction. 2 Residuals in PH model

Package ARCensReg. September 11, 2016

Package SEMModComp. R topics documented: February 19, Type Package Title Model Comparisons for SEM Version 1.0 Date Author Roy Levy

Cox s proportional hazards/regression model - model assessment

Package drgee. November 8, 2016

Package jmcm. November 25, 2017

Package dispmod. R topics documented: February 15, Version 1.1. Date Title Dispersion models

ADVANCED STATISTICAL ANALYSIS OF EPIDEMIOLOGICAL STUDIES. Cox s regression analysis Time dependent explanatory variables

Relative-risk regression and model diagnostics. 16 November, 2015

Package RI2by2. October 21, 2016

Transcription:

Package crrsc February 19, 2015 Title Competing risks regression for Stratified and Clustered data Version 1.1 Author Bingqing Zhou and Aurelien Latouche Extension of cmprsk to Stratified and Clustered data. Goodness of fit test for Fine-Gray model. Depends survival Maintainer Aurelien Latouche <aurelien.latouche@cnam.fr> License GPL-2 NeedsCompilation yes Repository CRAN Date/Publication 2013-06-23 00:24:34 R topics documented: bce.............................................. 1 cdata............................................. 2 center............................................ 3 crrc............................................. 3 crrs............................................. 5 crrvvs............................................ 8 print.crrs........................................... 8 psh.test........................................... 9 Index 11 bce Breast Cancer Data Data Randomly Generated According To El178 clinical trial 1

2 cdata data(bce) Format A data frame with 200 observations and the following 6 variables. trt Treatment: 0=Placebo, 1=Tamoxifen time Event time type Event type. 0=censored, 1=Breast Cancer recurrence, 2=Death without recurrence nnodes Number of positive nodes tsize Tumor size age Age data(bce) cdata Clustered competing risks simulated data sample of 200 observations data(cdata) Format A data frame with 200 observations and the following 4 variables. Simulation is detailed on the paper Competing Risk Regression for clustered data. Zhou, Fine, Latouche, Labopin. 2011. In Press. Biostatistics. ID Id of cluster, each cluster is of size 2 ftime Event time fstatus Event type. 0=censored, 1, 2 z a binary covariate with P(z=1)=0.5 data(cdata)

center 3 center Multicenter Bone Marrow transplantation data Random sub sample of 400 patients data(center) Format A data frame with 400 observations and the following 5 variables. id Id of transplantation center ftime Event time fstatus Event type. 0=censored, 1=Acute or Chronic GvHD, 2=Death free of GvHD cells source of stem cells: peripheral blood vs bone marrow fm female donor to male recipient match data(center) crrc Competing Risks Regression for Clustered Data Regression modeling of subdistribution hazards for clustered right censored data. Failure times within the same cluster are dependent. crrc(ftime,fstatus,cov1,cov2,tf,cluster, cengroup,failcode=1, cencode=0, subset, na.action=na.omit, gtol=1e-6,maxiter=10,init)

4 crrc Arguments cluster ftime fstatus cov1 cov2 tf cengroup failcode cencode subset na.action gtol Details Value maxiter Clustering covariate vector of failure/censoring times vector with a unique code for each failure type and a separate code for censored observations matrix (nobs x ncovs) of fixed covariates (either cov1, cov2, or both are required) matrix of covariates that will be multiplied by functions of time; if used, often these covariates would also appear in cov1 to give a prop hazards effect plus a time interaction functions of time. A function that takes a vector of times as an argument and returns a matrix whose jth column is the value of the time function corresponding to the jth column of cov2 evaluated at the input time vector. At time tk, the model includes the term cov2[,j]*tf(tk)[,j] as a covariate. vector with different values for each group with a distinct censoring distribution (the censoring distribution is estimated separately within these groups). All data in one group, if missing. code of fstatus that denotes the failure type of interest code of fstatus that denotes censored observations a logical vector specifying a subset of cases to include in the analysis a function specifying the action to take for any cases missing any of ftime, fstatus, cov1, cov2, cengroup, or subset. iteration stops when a function of the gradient is < gtol maximum number of iterations in Newton algorithm (0 computes scores and var at init, but performs no iterations) init initial values of regression parameters (default=all 0) This method extends Fine-Gray proportional hazards model for subdistribution (1999) to accommodate situations where the failure times within a cluster might be correlated since the study subjects from the same cluster share common factors This model directly assesses the effect of covariates on the subdistribution of a particular type of failure in a competing risks setting. Returns a list of class crr, with components $coef $loglik $score $inf $var $res the estimated regression coefficients log pseudo-liklihood evaluated at coef derivitives of the log pseudo-likelihood evaluated at coef -second derivatives of the log pseudo-likelihood estimated variance covariance matrix of coef matrix of residuals

crrs 5 $uftime $bfitj $tfs $converged $call vector of unique failure times jumps in the Breslow-type estimate of the underlying sub-distribution cumulative hazard (used by predict.crr()) the tfs matrix (output of tf(), if used) TRUE if the iterative algorithm converged The call to crr $n The number of observations used in fitting the model $n.missing The number of observations removed from the input data due to missing values $loglik.null The value of the log pseudo-likelihood when all the coefficients are 0 Author(s) Bingqing Zhou, <bingqing.zhou@yale.edu> References Zhou B, Fine J, Latouche A, Labopin M.(2012). Competing Risks Regression for Clustered data. Biostatistics. 13 (3): 371-383. See Also cmprsk #library(cmprsk) #crr(ftime=cdata$ftime, fstatus=cdata$fstatus, cov1=cdata$z) # Simulated clustered data set data(cdata) crrc(ftime=cdata[,1],fstatus=cdata[,2], cov1=cdata[,3], cluster=cdata[,4]) crrs Competing Risks Regression for Stratified Data Regression modeling of subdistribution hazards for stratified right censored data Two types of stratification are addressed : Regularly stratified: small number of large groups (strata) of subjects Highly stratified: large number of small groups (strata) of subjects

6 crrs crrs(ftime, fstatus, cov1, cov2, strata, tf, failcode=1, cencode=0, ctype=1, subsets, na.action=na.omit, gtol=1e-6, maxiter=10,init) Arguments strata ctype ftime fstatus cov1 cov2 tf failcode cencode subsets na.action gtol Details Value maxiter stratification covariate 1 if estimating censoring dist within strata (regular stratification), 2 if estimating censoring dist across strata (highly stratification) vector of failure/censoring times vector with a unique code for each failure type and a separate code for censored observations matrix (nobs x ncovs) of fixed covariates (either cov1, cov2, or both are required) matrix of covariates that will be multiplied by functions of time; if used, often these covariates would also appear in cov1 to give a prop hazards effect plus a time interaction functions of time. A function that takes a vector of times as an argument and returns a matrix whose jth column is the value of the time function corresponding to the jth column of cov2 evaluated at the input time vector. At time tk, the model includes the term cov2[,j]*tf(tk)[,j] as a covariate. code of fstatus that denotes the failure type of interest code of fstatus that denotes censored observations a logical vector specifying a subset of cases to include in the analysis a function specifying the action to take for any cases missing any of ftime, fstatus, cov1, cov2, cengroup, or subset. iteration stops when a function of the gradient is < gtol maximum number of iterations in Newton algorithm (0 computes scores and var at init, but performs no iterations) init initial values of regression parameters (default=all 0) Fits the stratified extension of the Fine and Gray model (2011). This model directly assesses the effect of covariates on the subdistribution of a particular type of failure in a competing risks setting. Returns a list of class crr, with components (see crr for details) $coef $loglik the estimated regression coefficients log pseudo-liklihood evaluated at coef

crrs 7 $score $inf $var $res $uftime $bfitj $tfs $converged $call derivitives of the log pseudo-likelihood evaluated at coef -second derivatives of the log pseudo-likelihood estimated variance covariance matrix of coef matrix of residuals vector of unique failure times jumps in the Breslow-type estimate of the underlying sub-distribution cumulative hazard (used by predict.crr()) the tfs matrix (output of tf(), if used) TRUE if the iterative algorithm converged The call to crr $n The number of observations used in fitting the model $n.missing The number of observations removed from the input data due to missing values $loglik.null The value of the log pseudo-likelihood when all the coefficients are 0 Author(s) Bingqing Zhou, <bingqing.zhou@yale.edu> References Zhou B, Latouche A, Rocha V, Fine J. (2011). Competing Risks Regression for Stratified Data. Biometrics. 67(2):661-70. See Also cmprsk ## #using fine and gray model #crr(ftime=center$ftime, fstatus=center$fstatus, #cov1=cbind(center$fm,center$cells)) # # High Stratification: ctype=2 # Random sub-sample data(center) cov.test<-cbind(center$fm,center$cells) crrs(ftime=center[,1],fstatus=center[,2], cov1=cov.test, strata=center$id,ctype=2)

8 print.crrs crrvvs For internal use for internal use Author(s) Bingqing Zhou print.crrs Print method for crrs output Prints call for crrs object ## S3 method for class crrs print(x,...) Arguments x crr object (output from crrs())... additional arguments to print() Author(s) B. Zhou

psh.test 9 psh.test Goodness-of-fit test for proportional subdistribution hazards model This Goodness-of-fit test proposed a modified weighted Schoenfeld residuals to test the proportionality of subdistribution hazards for the Fine and Gray model psh.test(time, fstatus, z, D=c(1,1), tf=function(x) cbind(x,x^2), init) Arguments time vector of failure times fstatus failure status =0 if censored z covariates D components of z that are tested for time-varying effect tf functions of t for z being tested on the same location init initial values of regression parameters (default=all 0) Details The proposed score test employs Schoenfeld residuals adapted to competing risks data. The form of the test is established assuming that the non-proportionality arises via time-dependent coefficients in the Fine-Gray model, similar to the test of Grambsch and Therneau. Value Returns a data.frame with percentage of cens, cause 1, Test Statistic, d.f.,p-value Author(s) Bingqing Zhou, <bingqing.zhou@yale.edu> References Zhou B, Fine JP, Laird, G. (2013). Goodness-of-fit test for proportional subdistribution hazards mode. Statistics in Medicine. In Press.

10 psh.test data(bce) attach(bce) lognodes <- log(nnodes) Z1 <- cbind(lognodes, tsize/10, age, trt) # trt = 0 if placebo, = 0 treatment # testing for linear time varying effect of trt psh.test(time=time, fstatus=type, z=z1, D=c(0,0,0,1), tf=function(x) x) # testing for quadratic time varying effect of trt psh.test(time=time, fstatus=type, z=z1, D=c(0,0,0,1), tf=function(x) x^2) # testing for log time varying effect of trt psh.test(time=time, fstatus=type, z=z1, D=c(0,0,0,1), tf=function(x) log(x)) # testing for both linear and quadratic time varying effect of trt psh.test(time=time, fstatus=type, z=z1, D=matrix(c(0,0,0,1,0,0,0,1), 4,2), tf=function(x) cbind(x,x^2))

Index Topic crrsc bce, 1 cdata, 2 center, 3 Topic datasets bce, 1 cdata, 2 center, 3 Topic survival crrc, 3 crrs, 5 bce, 1 cdata, 2 center, 3 crrc, 3 crrfs (crrvvs), 8 crrfsvs (crrvvs), 8 crrs, 5 crrvvs, 8 print.crrs, 8 psh.test, 9 11