Learn R Programming

INLAjoint (version 24.3.25)

setup_FE_model: Setup fixed effects part for longitudinal marker k

Description

Setup fixed effects part for longitudinal marker k (internal function) input:

Usage

setup_FE_model(formula, dataset, timeVar, k, dataOnly)

Value

colnames(FE) names of the fixed effects (interactions are separated by ".X." instead of ":" to facilitate their manipulation)

FE values of the fixed effects

Arguments

formula

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

dataset

that contains the outcome

timeVar

name of time variable

k

identifies the longitudinal marker among 1:K markers

dataOnly

boolean for internal use, indicates if only preparing data (i.e., not fitting the model) output: