混合效应
线性混合效应模型在对响应变量建模时包括固定效应和随机效应。这种类型的模型可以通过包含聚类变量的随机效应来解释数据集中的全局和局部趋势。如果数据在表中,您可以使用 fitlme
拟合线性混合效应模型。或者,如果您的模型不容易用公式描述,您可以创建矩阵来定义固定效应和随机效应,然后使用 fitlmematrix
拟合模型。
函数
对象
LinearMixedModel | Linear mixed-effects model |
主题
- Prepare Data for Linear Mixed-Effects Models
Store data in the correct form for fitting a linear mixed-effects model.
- Relationship Between Formula and Design Matrices
Understand the relationship between a model formula and the design matrices in linear mixed-effects models.
- Linear Mixed-Effects Model Workflow
This example shows how to fit and analyze a linear mixed-effects model (LME).
- Fit Mixed-Effects Spline Regression
This example shows how to fit a mixed-effects linear spline model.
- Linear Mixed-Effects Models
Linear mixed-effects models are extensions of linear regression models for data that are collected and summarized in groups.
- Estimating Parameters in Linear Mixed-Effects Models
The two most commonly used approaches to parameter estimation in linear mixed-effects models are maximum likelihood and restricted maximum likelihood methods.
- Wilkinson Notation
Wilkinson notation provides a way to describe regression and repeated measures models without specifying coefficient values.