Here is a mock dataset that aims to answer a question on whether subjects with increasing value between trip (from v0 to v2, 3 visits) will have significant shorter/longer survival time (time). The mock dataset is shown below (can be reproduced in R):
subj = rep(1:50, each=3)
trip = rep(c("v0", "v1", "v2"), 50)
value = round(abs(rnorm(n=150, mean=6, sd=2)), 3)
time = round(rexp(n=150, rate=0.3), 3)
censor = rep(rbinom(n=50, size=1, prob=0.5), each=3)
type = c(rep("type 1", 12), rep("type 2", 6), rep("type 3", 5), rep("type 4", 16), rep("type 5", 11))
dat = data.frame(subj, trip, value, time, censor, type)
There are a total of 50 subjects (subj), each having 3 visits (trip), and for each visit, there is a measurement value taken. Each subject had survival time (time), censoring status (censor, 0=censor, 1=death), and disease type (type). Please advise any well-established statistical methods for such analysis. Ideally such methods can be extended to incorporate additional covariates at the subject level, with R package implementation available. Probably Cox PH model with random effect for disease type (type) may be one way to consider? Thank you for the suggestions.
valuetaken at different time points can help predict the survival time, taking into account the heterogeneity of different tumor types (type). – alittleboy Mar 29 '17 at 12:10