initial.long {FlexVarJM}R Documentation

Initialisation of Longitudinal Submodel

Description

Initialisation of Longitudinal Submodel

Usage

initial.long(formFixed, formRandom, idVar, data.long1, ncX, nproc = nproc)

Arguments

formFixed

A formula which indicates the fixed effects for the longitudinal submodel

formRandom

A formula which indicates the random effects for the longitudinal submodel

idVar

A character, indicates the name of the group variable

data.long1

A dataframe with the longitudinal data

ncX

An integer, the number of columns of matrix X, ie, the number of fixed effects

nproc

An integer, the number of cores for parallel computation

Value

A list with the following components :

long_model

the result of the hlme function

priorMean.beta

the estimated parameters for fixed effects in the linear mixed effects model

sigma

the estimated sigma of the model


[Package FlexVarJM version 0.1.0 Index]