Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R package“JM": missing value where TRUE/FALSE needed

Tags:

r

I receive the following error message:

Error in if (t1 || t2) { : missing value where TRUE/FALSE needed

And when I just type:

library(JM)
lmefit=lme(ADAS11+apoe4+AGEING,random = ~AGEING|RID,data = AD,na.action=na.exclude)
coxfit=coxph(Surv(AGEEND,DXEND)~apoe4bl+,data = AD.RID,x=TRUE)
jointfit=jointModel(lmefit,coxfit,timeVar = "AGEING")

What does it mean, and how do I solve it.Thanks

like image 438
sansan Avatar asked Sep 05 '26 15:09

sansan


1 Answers

I tried rescaling the time variable and it worked without having to remove any IDs

Worth a shot

https://github.com/drizopoulos/JM/issues/10

like image 200
gradstudent4life Avatar answered Sep 07 '26 09:09

gradstudent4life



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!