drizopoulos / JM

Joint Models for Longitudinal & Survival Data under Maximum Likelihood
34 stars 7 forks source link

jointModel() looks for external data.frame #8

Closed Currerius closed 6 years ago

Currerius commented 6 years ago

... I thought. But it does not. Everything is neat and fine with jointModel(). issue can be closed.

The issue was that lme() stores the name of the formula passed to it. Not the formula object itself. I think this might be a bug in lme().

When passing a list of formulas programmatically to lme() then the reference between the "call" and the "data" objects is broken.

jointModel() references correctly between call and data, but since this does not make any sense, jointModel() throws and error...

drizopoulos commented 6 years ago

Thanks for the update!