JM icon indicating copy to clipboard operation
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

Open amirabadiza921 opened this issue 2 years ago • 0 comments

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

amirabadiza921 avatar Jul 25 '22 07:07 amirabadiza921