主要内容

disp

班级:LinearMixedModel

显示线性混合效应模型

描述

example

展示(lme)displays the fitted linear mixed-effects modellme

Input Arguments

expand all

线性混合效应模型,指定为LinearMixedModel使用的对象fitlme或者fitlmematrix

例子

expand all

加载样本数据。

load('shift.mat');

The dataset array shows the absolute deviations from the target quality characteristic measured from the products that five operators manufacture during three shifts, morning, evening, and night. This is a randomized block design, where the operators are the blocks. The experiment is designed to study the impact of the time of shift on the performance. The performance measure is the absolute deviation of the quality characteristics from the target value. This is simulated data.

ShiftOperator是名义变量。

shift.shift =名义(shift.shift);shift.operator =名义(shift.operator);

Fit a linear mixed-effects model with a random intercept grouped by operator to assess if performance significantly differs according to the time of the shift.

lme = fitlme(Shift,'QCDev ~ Shift + (1|Operator)');

显示模型。

disp(lme)
Linear mixed-effects model fit by ML Model information: Number of observations 15 Fixed effects coefficients 3 Random effects coefficients 5 Covariance parameters 2 Formula: QCDev ~ 1 + Shift + (1 | Operator) Model fit statistics: AIC BIC LogLikelihood Deviance 59.012 62.552 -24.506 49.012 Fixed effects coefficients (95% CIs): Name Estimate SE tStat DF pValue {'(Intercept)' } 3.1196 0.88681 3.5178 12 0.0042407 {'Shift_Morning'} -0.3868 0.48344 -0.80009 12 0.43921 {'Shift_Night' } 1.9856 0.48344 4.1072 12 0.0014535 Lower Upper 1.1874 5.0518 -1.4401 0.66653 0.93227 3.0389 Random effects covariance parameters (95% CIs): Group: Operator (5 Levels) Name1 Name2 Type Estimate {'(Intercept)'} {'(Intercept)'} {'std'} 1.8297 Lower Upper 0.94915 3.5272 Group: Error Name Estimate Lower Upper {'Res Std'} 0.76439 0.49315 1.1848

This display includes the model performance statistics,Akaike and Bayesian Information Criteria,Akaike and Bayesian Information Criteria, loglikelihood, and偏差

固定效应系数表包括前两列中系数的名称和估计值。第三列SEshows the standard errors of the coefficients. The columntStatincludes the t -statistic values that correspond to each coefficient.DF是剩余的自由度,pValue是个 p - 对应于相应的值 t -statistic value. The columnsLowerUpperdisplay the lower and upper limits of a 95% confidence interval for each fixed-effects coefficient.

The first table for the random effects shows the types and the estimates of the random effects covariance parameters, with the lower and upper limits of a 95% confidence interval for each parameter. The display also shows the name of the grouping variable, operator, and the total number of levels, 5.

随机效应的第二个表显示了观察误差的估计值,其下限和上限为95%置信区间。

More About

expand all

参考

[1] Hox, J.多级分析,技术和应用。Lawrence Erlbaum Associates, Inc., 2002.

[2] Stram D. O. and J. W. Lee. “Variance components testing in the longitudinal mixed-effects model”.Biometrics, Vol. 50, 4, 1994, pp. 1171–1177.