JM
JM copied to clipboard
Error in d * log.hazard + log.survival : non-conformable arrays In addition: Warning message: In wk * rep(x$P, each = nk) : longer object length is not a multiple of shorter object length
Hi Dr. Rizopoulos, Like a few of the commentors below, I am having an issue with getting my joint model to run, receiving an error fit.lm1<-lme(log(TSH_)~time ,random= ~time | code,control=lmeControl(opt="optim"),data=dataLong) summary(fit.lm1) model.cox<-coxph(Surv(Time,DM1)~sex15_1,data=data,x=T,model=TRUE) summary(model.cox) fit.JM<-jointModel(fit.lm1,model.cox,timeVar="time",method ="piecewise-PH-aGH")
Error in d * log.hazard + log.survival : non-conformable arrays In addition: Warning message: In wk * rep(x$P, each = nk) : longer object length is not a multiple of shorter object length Any advice for how to get my model to run would be very appreciated!
Thanks