boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - An R Question: Joint Model for Longitudinal and Survival D
相关主题
因为一个组中没有死亡(event), 没有办法做Cox怎么办?
R: 求 R code 用KM estimate 的 survival curve
An R question
包子求助Survival问题,很菜,请大家包涵
baseline function for Cox PH model
longitudinal VS Survival analysis
求统计 survival analysis, longitudinal analysis, non parametric, missing data 审稿
请教一个fit Cox PHREG model的问题
请教一个SIMULATION的问题
请推荐一本survival analysis 的书.
相关话题的讨论汇总
话题: 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版参与讨论
相关主题
请推荐一本survival analysis 的书.
Is there any way to calculate c index for competing risk survival model
求推荐一本关于survival analysis的书
Extended Cox Hazard model with time dependent variables
Survival analysis 能把几次不同实验 Pool到一起么?
请教survival analysis: how to get the 95%CI for failure ?
survreg vs coxph
问个R function Survfit 的问题
问一个R的问题: survreg() vs. PROC LIFEREG
再问个概率题
相关话题的讨论汇总
话题: model话题: jm话题: survival话题: question