Closed jpkrooney closed 3 years ago
As the error message suggests, you need to have the same id variable in both datasets used to fit the longitudinal and survival models. Hence, either you need to specify the id_var
in jm()
or you need to create the UID
variable in pbc2.id
.
Intentionally, this is a bit different than what was done in JMbayes.
Ah ok thanks Dimitris - sorry my mistake
Hi. I think I found a small bug that occurs when the longitudinal grouping variable is named anything other than
id
. I made a reproducible example:Output: