data.manag.long: Management of longitudinal data

View source: R/data.manag.long.R

data.manag.longR Documentation

Management of longitudinal data

Description

Management of longitudinal data

Usage

data.manag.long(formGroup, formFixed, formRandom, data.long1)

Arguments

formGroup

A formula which indicates the group variable

formFixed

A formula which indicates the fixed effects for the longitudinal submodel

formRandom

A formula which indicates the random effects for the longitudinal submodel

data.long1

A dataframe with the longitudinal data

Value

A list with the following components :

data_long

a clean dataframe for the longitudinal data

y.new.prog

the vector of responses variable

X

a matrix with the fixed effects

U

a matrix with the random effects

id

a vector with the identification of individuals

offset

a vector with the number of measurements for each individual

I

an integer, the number of individuals


FlexVarJM documentation built on Nov. 21, 2023, 1:06 a.m.