drizopoulos / JMbayes2

Extended Joint Models for Longitudinal and Survival Data
https://drizopoulos.github.io/JMbayes2/
78 stars 22 forks source link

Missing values and NaN's not allowed if 'na.rm' is FALSE #39

Closed Minana05 closed 2 years ago

Minana05 commented 2 years ago

I tried to run the joint model with package "JMbayes2" and it returned this error "missing values and NaN's not allowed if 'na.rm' is FALSE Calls: jm ... summary.mcmc.list -> t -> apply -> FUN -> quantile.default Execution halted". But I do not have any missing value in my data set. I also tried other datasets and they run well. I was wondering what will hit the error without having missing data. Thank you so much!

drizopoulos commented 2 years ago

This error message indicates that there are missing data in the MCMC samples after the model is fitted. This could be caused by fitting an overly complicated model. But in any case, we will rectify it for the next release of the package.