Categories &

Functions List

Class Definition: LinearMixedModel

statistics: LinearMixedModel

Linear mixed-effects model fitted to data.

A LinearMixedModel object represents a fitted linear mixed-effects model $$ y = X\beta + Zb + \varepsilon, $$ with fixed effects beta, random effects b distributed as N(0, Psi), and independent errors N(0, sigma2). Objects are created with fitlmematrix (from design matrices).

The estimated fixed effects and their statistics are available through the Coefficients table; the covariance parameters through covarianceParameters; the random-effect BLUPs through randomEffects; and predictions, residuals, and hypothesis tests through the predict, residuals, anova, coefTest, and coefCI methods.

See also: fitlmematrix, fitlm

Source Code: LinearMixedModel

The LinearMixedModel class contains the following properties:

LinearMixedModel.FitMethod is not documented.
LinearMixedModel.NumObservations is not documented.
LinearMixedModel.NumCoefficients is not documented.
LinearMixedModel.NumEstimatedCoefficients is not documented.
LinearMixedModel.Coefficients is not documented.
LinearMixedModel.CoefficientCovariance is not documented.
LinearMixedModel.CoefficientNames is not documented.
LinearMixedModel.LogLikelihood is not documented.
LinearMixedModel.ModelCriterion is not documented.
LinearMixedModel.Rsquared is not documented.
LinearMixedModel.SSE is not documented.
LinearMixedModel.SSR is not documented.
LinearMixedModel.SST is not documented.
LinearMixedModel.MSE is not documented.
LinearMixedModel.DFE is not documented.
LinearMixedModel.Formula is not documented.
LinearMixedModel.ResponseName is not documented.

The LinearMixedModel class offers the following public methods:

LinearMixedModel: lme = LinearMixedModel (info)

LinearMixedModel: beta = fixedEffects (lme)
LinearMixedModel: [beta, names] = fixedEffects (lme)

LinearMixedModel: b = randomEffects (lme)
LinearMixedModel: [b, names] = randomEffects (lme)

LinearMixedModel: [psi, mse] = covarianceParameters (lme)

LinearMixedModel: yf = fitted (lme)
LinearMixedModel: yf = fitted (lme, "Conditional", tf)

LinearMixedModel: r = residuals (lme)
LinearMixedModel: r = residuals (lme, "ResidualType", type)

LinearMixedModel: ypred = predict (lme, Xnew, Znew, Gnew)
LinearMixedModel: [ypred, yci] = predict (…)
LinearMixedModel: […] = predict (…, name, value)

LinearMixedModel: tbl = anova (lme)
LinearMixedModel: tbl = anova (lme, "DFMethod", method)

LinearMixedModel: p = coefTest (lme)
LinearMixedModel: p = coefTest (lme, H)
LinearMixedModel: [p, F, df1, df2] = coefTest (…)

LinearMixedModel: ci = coefCI (lme)
LinearMixedModel: ci = coefCI (lme, alpha)

LinearMixedModel: D = designMatrix (lme, type)