setinval {SlaPMEG}R Documentation

Estimating initial values for slapmeg based on seperate lme models

Description

A seperate lme model is fited per omic in the pathway and the estimates are combined to create initial values for the slapmeg function.

Usage

setinval(fixed, random, subject, data)

Arguments

fixed

A two-sided linear formula object for specifying the fixed-effects in the linear mixed model at the latent process level. Names of omics in the pathway are separated by + on the left of ~ and the covariates are separated by + on the right of the ~. For identifiability purposes, the intercept should always be present in the model.

random

A one-sided formula for the random-effects in the latent process mixed model and starts with the ~ sign. At least one random effect should be included. Covariates with a random-effect are separated by +.

subject

name of the covariate representing the repeated measures structure such as subject IDs.

data

data frame containing the variables named in fixed, random, grouping and subject.

Value

A vector of initial values to be used as input for multlcmm function

Author(s)

Mitra Ebrahimpoor

m.ebrahimpoor@lumc.nl


[Package SlaPMEG version 1.0.1 Index]