Skip to contents

The R package JLPM implements in the jointLPM function the estimation of a joint shared random effects model.

 

The longitudinal data (y1,y2,,yKy_1, y_2, \dots, y_K) can be continuous or ordinal and are modelled using a mixed model.

 

For the continuous case, a transformation HkH_k is estimated for outcome yky_k (k1,,Kk \in 1,\dots,K) :

Hk(yk(tijk),ηk)=Xi(tijk)β+Zi(tijk)ui+εijk H_k(y_k(t_{ijk}), \eta_k) = X_i(t_{ijk})\beta + Z_i(t_{ijk})u_i + \varepsilon_{ijk}

For an ordinal outcome, mixed models are combined to the Item Response Theory:

(yk(tijk)=m)(ηk,m1<Xi(tijk)β+Zi(tijk)ui+εijk<ηk,m) \mathbb{P}( y_k(t_{ijk}) = m) \Leftrightarrow \mathbb{P}(\eta_{k, m-1} < X_i(t_{ijk})\beta + Z_i(t_{ijk})u_i + \varepsilon_{ijk} < \eta_{k, m})

where Xi(tijk)X_i(t_{ijk}) and Zi(tijk)Z_i(t_{ijk}) are vectors of covariates measured at time tijkt_{ijk} for subject ii, β\beta is the vector of fixed effects, ui𝒩(0,B)u_i \sim \mathcal{N}(0,B) are the random effects, εijk𝒩(0,σk2)\varepsilon_{ijk} \sim \mathcal{N}(0,\sigma_k^2) the measurement errors, ηk\eta_k are the parameters of the link function HkH_k or the thresholds associated to the outcome yky_k.

Note that even with multiple longitudinal outcomes, a univariate mixed model is estimated.

 

The time-to-event data are modelled in a proportional hazard model where different associations between the longitudinal outcome and the event can be included.

 

With an association through the random effects of the longitudinal model:

αi(t)=α0(t,ω)exp(X̃iγ+δui) \alpha_i(t) = \alpha_0(t, \omega) \exp(\tilde{X}_i \gamma + \delta u_i)

With an association through the current level of the longitudinal model:

αi(t)=α0(t,ω)exp(X̃iγ+δ(Xi(t)β+Zi(t)ui)) \alpha_i(t) = \alpha_0(t, \omega) \exp(\tilde{X}_i \gamma + \delta (X_i(t)\beta + Z_i(t)u_i))

With an association through the current slope of the longitudinal model:

αi(t)=α0(t,ω)exp(X̃iγ+δ(ddtXi(t)β+ddtZi(t)ui)) \alpha_i(t) = \alpha_0(t, \omega) \exp(\tilde{X}_i \gamma + \delta ( \frac{d}{dt}X_i(t)\beta + \frac{d}{dt}Z_i(t)u_i))

with α0(t,ω)\alpha_0(t, \omega) the baseline hazard function at time tt, parameterized with ω\omega, X̃i\tilde{X}_i a vector of time-fixed covariates, γ\gamma the fixed effects, and δ\delta the association parameter.

 

The parameters β,B,σk,ηk,ω,γ,δ\beta, B, \sigma_k, \eta_k, \omega, \gamma, \delta are estimated using a Marquardt-Levenberg algorithm.