drizopoulos / JMbayes2

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

functional_forms argument and random effects association #95

Closed hortensedoms closed 5 months ago

hortensedoms commented 5 months ago

With JMbayes it was possible to define a random effects association using the following argument : param="shared-RE" . How can we do this with JMbayes2 using the functional_forms argument?

Also, what does the function coefs(x, zero_ind = NULL) do in the argument "functional_forms" ? What type of association is linked to this function ?

Thank you very much

drizopoulos commented 5 months ago

The option shared-RE is not currently supported in JMbayes2.

The coefs() function can be used to set the columns of the design matrix to zero. For instance, if you fit a model as y ~ time + sex, and you use functional_forms = ~ coefs(y, zero_ind = c(1, 3)), it will only include the term $(\beta1 + b{i1})t$ in the linear predictor of the survival submodel.