由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - An R Question: Joint Model for Longitudinal and Survival D
相关主题
因为一个组中没有死亡(event), 没有办法做Cox怎么办?请教一个SIMULATION的问题
R: 求 R code 用KM estimate 的 survival curve请推荐一本survival analysis 的书.
An R questionIs there any way to calculate c index for competing risk survival model
包子求助Survival问题,很菜,请大家包涵求推荐一本关于survival analysis的书
baseline function for Cox PH modelExtended Cox Hazard model with time dependent variables
longitudinal VS Survival analysisSurvival analysis 能把几次不同实验 Pool到一起么?
求统计 survival analysis, longitudinal analysis, non parametric, missing data 审稿请教survival analysis: how to get the 95%CI for failure ?
请教一个fit Cox PHREG model的问题survreg vs coxph
相关话题的讨论汇总
话题: model话题: jm话题: survival话题: question
进入Statistics版参与讨论
1 (共1页)
y*****w
发帖数: 1350
1
I was running the JM package in R for a joint model for longitudinal and
survival data. I could successfully run the lme() function (for the mixed
model) and the coxph() function (for the Cox model) separately, but when I
ran the JointModel() function, the program returned the following error
message:
Error in fitter(X, Y, strats, offset, init, control, weights = weights, :
Can't fit a Cox model with 0 failures
I double checked my data and there was no any irregular point. What's the
meaning of "0 failures" in this context? The event rate in my data was not
100% for sure.
My code just mimicked the original code in the JM package shown below:
install.packages("JM", dependencies = TRUE)
library(JM)
library(lattice)
lmeFit <- lme(pro ~ treat * (time + t0), random = ~ time | id, data =
prothro)
survFit <- coxph(Surv(Time, death) ~ treat, data = prothros, x = TRUE)
fitJoint.pw <- jointModel(lmeFit, survFit, timeVar = "time", method = "
piecewise-PH-aGH")
fitJoint.sp <- jointModel(lmeFit, survFit, timeVar = "time", method = "
spline-PH-aGH")
Any idea as to why I got the error message? Thanks!
1 (共1页)
进入Statistics版参与讨论
相关主题
survreg vs coxphbaseline function for Cox PH model
问个R function Survfit 的问题longitudinal VS Survival analysis
问一个R的问题: survreg() vs. PROC LIFEREG求统计 survival analysis, longitudinal analysis, non parametric, missing data 审稿
再问个概率题请教一个fit Cox PHREG model的问题
因为一个组中没有死亡(event), 没有办法做Cox怎么办?请教一个SIMULATION的问题
R: 求 R code 用KM estimate 的 survival curve请推荐一本survival analysis 的书.
An R questionIs there any way to calculate c index for competing risk survival model
包子求助Survival问题,很菜,请大家包涵求推荐一本关于survival analysis的书
相关话题的讨论汇总
话题: model话题: jm话题: survival话题: question