Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

混合效应

线性混合效应模型

线性混合效应模型在对响应变量建模时包括固定效应和随机效应。这种类型的模型可以通过包含聚类变量的随机效应来解释数据集中的全局和局部趋势。如果数据在表中,您可以使用 fitlme 拟合线性混合效应模型。或者,如果您的模型不容易用公式描述,您可以创建矩阵来定义固定效应和随机效应,然后使用 fitlmematrix 拟合模型。

函数

全部展开

fitlmeFit linear mixed-effects model
fitlmematrixFit linear mixed-effects model
predict Predict response of linear mixed-effects model
random Generate random responses from fitted linear mixed-effects model
fixedEffectsEstimates of fixed effects and related statistics
randomEffects Estimates of random effects and related statistics
fittedFitted responses from a linear mixed-effects model
anovaAnalysis of variance for linear mixed-effects model
coefCI Confidence intervals for coefficients of linear mixed-effects model
coefTestHypothesis test on fixed and random effects of linear mixed-effects model
compareCompare linear mixed-effects models
designMatrixFixed- and random-effects design matrices
covarianceParametersExtract covariance parameters of linear mixed-effects model
partialDependenceCompute partial dependence (自 R2020b 起)
residualsResiduals of fitted linear mixed-effects model
responseResponse vector of the linear mixed-effects model
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
plotResidualsPlot residuals of linear mixed-effects model

对象

LinearMixedModelLinear mixed-effects model

主题