drizopoulos / JMbayes2

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

Updated plot.predict_jm #4

Closed harryparr closed 3 years ago

harryparr commented 3 years ago

Amended plotting fn slightly to allow for greater control/flexibility of the longitudinal y-axis limits. When exponentiating, I found the limits were very wide looking at the ranges <- attr(x, "ranges") of the original data, rather than the subset of data in question. Only tested with a univariate longitudinal outcome, so may need to be further adapted.

drizopoulos commented 3 years ago

It has been resolved by adding the extra argument ylim_long_outcome_range in the plot() method.