Learn R Programming

INLAjoint (version 24.3.25)

setup_Y_model: Setup outcome for longitudinal marker

Description

Setup outcome for longitudinal marker (internal function) input:

Usage

setup_Y_model(formula, dataset, family, k)

Value

YL.name name of the outcome

YL values of the outcome

Arguments

formula

with lme4 format (fixed effects and random effects in the same object)

dataset

that contains the outcome

family

of the outcome (given to check if the distribution matches but the check is not done yet)

k

identifies the longitudinal marker among 1:K markers output: