Setup survival part for outcome m (internal function) input:
setup_S_model(
formula,
formLong,
dataSurv,
LSurvdat,
timeVar,
assoc,
id,
m,
K,
M,
NFT,
corLong,
dataOnly,
SurvInfo,
strata
)
YS_data includes the values of the survival outcome and covariates associated to this survival part, with the association parameters but the provided id are temporary and they will be updated after the cox expansion to make them unique and allow for time dependency
YSformF formula for this survival outcome (not including association parameters)
with inla.surv() object as an outcome
formula from the longitudinal part, if any
dataset(s) for the survival part
dataset for the longitudinal part converted to survival format (internal, used to get covariates if missing in the survival dataset when sharing linear predictors including covariates from longitudinal into survival)
names of the variables that are time-dependent (only linear for now)
association parameters between K longitudinal outcomes and M survival outcomes (list of K vectors of size M)
name of the variable that gives the individual id
identifies the outcome among 1:M time-to-event outcomes
number of longitudinal outcomes
number of survival outcomes
maximum number of functions of time (fixed value)
boolean that indicates if random effects across longitudinal markers are correlated, when multiple longitudinal markers are included in the model
boolean for internal use, indicates if only preparing data (i.e., not fitting the model)
information about survival submodels for internal use
covariate for stratified proportional hazards model output: