The HPMIXED Procedure |
LSMEANS Statement |
The LSMEANS statement computes least squares means (LS-means) of fixed effects. As in the GLM procedure, LS-means are predicted population margins—that is, they estimate the marginal means over a balanced population. In a sense, LS-means are to unbalanced designs as classification and subclassification arithmetic means are to balanced designs. The matrix constructed to compute them is the same as the matrix formed in PROC GLM; however, the standard errors are adjusted for the covariance parameters in the model.
Each LS-mean is computed as , where is the coefficient matrix associated with the least squares mean and is the estimate of the fixed-effects parameter vector. The approximate standard errors for the LS-mean is computed as the square root of .
LS-means can be computed for any effect in the MODEL statement that involves CLASS variables. You can specify multiple effects in one LSMEANS statement or in multiple LSMEANS statements, and all LSMEANS statements must appear after the MODEL statement. As in the ESTIMATE statement, the matrix is tested for estimability, and if this test fails, PROC HPMIXED displays "Non-est" for the LS-means entries.
Assuming the LS-mean is estimable, PROC HPMIXED constructs an approximate t test to test the null hypothesis that the associated population quantity equals zero. By default, the denominator degrees of freedom for this test are the same as those displayed for the effect in the "Type III Tests of Fixed Effects" table (see the section TEST Statement).
You can specify the following options in the LSMEANS statement after a slash (/).
requests that a t-type confidence interval be constructed for each of the LS-means with confidence level . The value of number must be between 0 and 1; the default is 0.05.
requests that t-type confidence limits be constructed for each of the LS-means. If DDFM=NONE, then PROC HPMIXED uses infinite degrees of freedom for this test, essentially computing a z interval. The confidence level is 0.95 by default; this can be changed with the ALPHA= option.
displays the estimated correlation matrix of the least squares means as part of the "Least Squares Means" table.
displays the estimated covariance matrix of the least squares means as part of the "Least Squares Means" table.
specifies the degrees of freedom for the t test and confidence limits. The default is the denominator degrees of freedom taken from the "Type III Tests of Fixed Effects" table corresponding to the LS-means effect. For these DDFM= methods, degrees of freedom are determined separately for each test; see the DDFM= option for more information.
requests that the matrix coefficients for all LSMEANS effects be displayed. For ODS purposes, the name of this "Matrix Coefficients" table is "Coef."
tunes the estimability checking as documented for the SINGULAR= in the CONTRAST statement.
Note: This procedure is experimental.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.