Closed zh-zhang1984 closed 3 years ago
How can I solve the issue raised when I run the following code?
> fit <- mjoint( + formLongFixed = list("PF" = PF ~ tstop + age, + "Compiance" = Compiance ~ tstop), + formLongRandom = list("PF" = ~ 1 | id, + "Compiance" = ~ tstop | id), + formSurv = Surv(dischtime,hospital_expire_flag) ~ age, + data = list(dtSepsis[1000:2000,], dtSepsis[1000:2000,]), + inits = list("gamma" = c(0.11, 1.51, 0.80)), + timeVar = "tstop") Running multivariate LMM EM algorithm to establish initial parameters... Finished multivariate LMM EM algorithm... warning: chol(): given matrix is not symmetric warning: chol(): given matrix is not symmetric warning: chol(): given matrix is not symmetric error: chol(): decomposition failed Error in bSim(floor(nMC/2), Mi, Ai) : chol(): decomposition failed
Hi, do you have an example that we could use to reproduce the issue?
Closing issue as no reply to request for reprex.
How can I solve the issue raised when I run the following code?