mixUDT: Mixed Model

Description Usage Arguments Details Value Slots Examples

Description

mixUDT performs mixed model on FLTable objects.

Usage

1
2
## S3 method for class 'FLMixUDT'
residuals(formula, data = list(), ...)

Arguments

formula

A symbolic description of model to be fitted

data

An object of class FLTable.

Details

The DB Lytix function called is FLMixedModelUdt or FLMixedModelIntUdt. The mixed model extends the linear model by allowing correlation and heterogeneous variances in the covariance matrix of the residuals. Fita a linear mixed-effects model (LMM) to data, FLMixedModelUdt and FLMixedModelIntUdt estimates the coefficients and covariance matrix of the mixed model via expectation maximization method.

Value

lmer returns an object of class FLMixUDT

Slots

results

cache list of results computed

table

Input data object

Examples

1
2
3
4
5
6
7
8
One Random Effect.
fltbl  <- FLTable(getTestTableName("tblMixedModel"), "ObsID")
flmod <- mixUDT(yVal ~ FixVal + (1 | RanVal), data = fltbl, pIntercept = 1)
flpred <- predict(flmod)
2 Random Effects.
tbl  <- FLTable(getTestTableName("tblMixedModelInt"), "ObsID")
flmod <- mixUDT(yVal ~ FixVal + (1 |   RanVal1) + (1 | RanVal2 ), tbl)
flpred <- predict(flmod)

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.