-
adjust={method='method'<, method-specific-parameters>}
-
computes a multiple comparison adjustment for the p-values and
confidence limits for the differences of LS-means. The adjusted quantities are produced along with the unadjusted quantities. The adjust parameter works together with the diff parameter. If you omit the diff parameter and specify a method other than NONE, then the adjust parameter invokes the diff parameter. Only the SIMULATE method has method-specific-parameters.
You must specify one of the following methods for the adjust parameter:
-
BON
performs Bonferroni t tests of differences between LS-means. The method involves correction factors described in Chapter 53, The GLM Procedure (SAS/STAT User's Guide), and Chapter 86, The MULTTEST Procedure (SAS/STAT User's Guide); also see Westfall and Young (1993) and Westfall et al. (1999).
-
DUNNETT
performs Dunnett’s t test, which tests whether any treatments are significantly different from a single control for the effects in the lsmeans parameter. When the LS-means are correlated, the action uses the factor-analytic covariance approximation described in Hsu (1992) and identifies the adjustment as "Dunnett-Hsu" in the results. The approximation derives approximate "effective sample sizes" for which exact critical values are computed.
-
NELSON
performs Nelson’s t test of each LS-mean against an average of the LS-means (Ott 1967; Nelson 1982, 1991, 1993). When the LS-means are correlated, the action uses the factor-analytic covariance approximation described in Hsu (1992) and identifies the adjustment as "Nelson-Hsu" in the results. The approximation derives approximate "effective sample sizes" for which exact critical values are computed.
-
NONE | T
performs no adjustment for multiple comparisons.
-
SCHEFFE
performs Scheffé’s multiple comparison procedure.
-
SIDAK
performs pairwise t tests on differences between LS-means with levels adjusted according to Šidák’s inequality. The method involves correction factors described in Chapter 53, The GLM Procedure (SAS/STAT User's Guide), and Chapter 86, The MULTTEST Procedure (SAS/STAT User's Guide); also see Westfall and Young (1993) and Westfall et al. (1999).
-
SIMULATE < simopts >
-
performs the simulation-based multiple comparison procedure. This method computes adjusted p-values and confidence limits from the simulated distribution of the maximum or maximum absolute value of a multivariate t random vector. All covariance parameters, except the residual scale parameter, are fixed at their estimated values throughout the simulation, potentially resulting in some underdispersion. The simulation estimates q, the true
quantile, where
is the confidence coefficient. The default value of
is 0.05; you can change this value by specifying the alpha parameter in the lsmeans parameter.
The number of samples is set so that the tail area for the simulated q is within
of
with
% confidence. In equation form,
where
is the simulated q and F is the true distribution function of the maximum; see Edwards and Berry (1987) for details. By default,
= 0.005 and
= 0.01, placing the tail area of
within 0.005 of 0.95 with 99% confidence.
You can specify the following simopts method-specific-parameters to modify the simulation method:
-
ACC=value
specifies the target accuracy radius
of a
% confidence interval for the true probability content of the estimated
quantile. By default, ACC=0.005. Note that if you also set the cv parameter to True, then the actual accuracy radius will probably be substantially less than this target.
-
cv=True | False
when set to True, estimates the quantile by the control variate adjustment method of Hsu and Nelson (1998) instead of simply as the quantile of the simulated sample. Specifying this parameter usually has the effect of significantly reducing the accuracy radius
of a
% confidence interval for the true probability content of the estimated
quantile. The control-variate-adjusted quantile estimate takes approximately twice as long to compute, but it is typically much more accurate than the sample quantile.
-
epsilon=value
specifies the value
for a
% confidence interval for the true probability content of the estimated
quantile. The default value of the accuracy confidence is 99%, corresponding to epsilon=0.01.
-
nSample=n
specifies the sample size for the simulation. By default, n is set by a formula that is based on the values of the target accuracy radius
and accuracy confidence
% for an interval for the true probability content of the estimated
quantile. When the default values are used for
,
, and
(0.005, 0.01, and 0.05, respectively), nSample=12605. If you omit the NSAMP= option or specify NSAMP=0, the default sample size is used.
-
report=True | False
when set to True, displays a report on the simulation, including a listing of the parameters, such as
,
, and
, as well as an analysis of various methods of estimating or approximating the quantile.
-
seed=number
specifies an integer to be used to start the pseudorandom number generator for the simulation. If you do not specify a seed, or if you specify a number less than or equal to 0, the seed is generated by reading the time of day from the computer’s clock.
-
SMM | GT2
performs pairwise comparisons based on the studentized maximum modulus and Šidák’s uncorrelated-t inequality, yielding Hochberg’s GT2 method when sample sizes are unequal.
-
T | NONE
performs no adjustment for multiple comparisons.
-
TUKEY
performs Tukey’s studentized range test on LS-means. When your data are unbalanced, the action uses the approximation described in Kramer (1956) and identifies the adjustment as "Tukey-Kramer" in the results.
By default, method='NONE'.
If you specify method='DUNNETT', the action analyzes all differences with the first control level unless you have specified a different control level. If you specify method='NELSON', then diff='ANOM' is assumed.
If you specify method='TUKEY', then diff='ALL' is assumed. If you specify other methods, then the action performs all pairwise differences unless you specify the diff parameter.
Note that computing the exact adjusted p-values and critical values for unbalanced designs can be computationally intensive, especially for method='NELSON'.
-
alpha=number
specifies that a confidence interval be constructed for each of the LS-means with confidence level
. The value of number is between 0 and 1; the default is 0.05.
-
at='MEANS' | {at-specification}
-
enables you to modify the values of the covariates that are used in computing LS-means. By default, all covariates are set equal to their mean values for computing standard LS-means. The at parameter enables you to assign arbitrary values to the covariates. Additional columns in the output table indicate the values of the covariates.
You can specify at='MEANS' to set the covariates equal to their mean values (as with standard LS-means) and apply this adjustment to crossproducts of covariates, or you can specify the following at-specifications:
-
vals=value | {value1<, value2, …>}
specifies one or more values that are matched to the vars list.
-
vars='name' | {'name1'<, 'name2', …>}
specifies one or more covariate names that are matched to the vals list.
Consider the following example:
class={{vars={'A', 'B'}}},
model={depVars={{name='Y'}},
effects={{vars={'A', 'B'}, interaction='CROSS'},
{vars={'x1', 'x2'}},
{vars={'x1', 'x2'}, interaction='CROSS'}}},
lsmeans={{statements={
{terms={{vars={'a','b'},interaction='CROSS'}}},
{terms={{vars={'a','b'},interaction='CROSS'}}, at='MEANS'},
{terms={{vars={'a','b'},interaction='CROSS'}}, at={vars={'x1'},
vals={1.2}}},
{terms={{vars={'a','b'},interaction='CROSS'}}, at={vars={'x1','x2'},
vals={1.2, 0.3}}}
}}},
For the first two sets of option subparameters in the lsmeans parameter, the LS-means coefficient of x1 is
(the mean of x1) and of x2 is
(the mean of x2). For the first set of option subparameters, the coefficient of x1*x2 is
. However, for the second set of option subparameters, the coefficient is
. The third set of option subparameters sets the coefficient of x1 equal to 1.2 and leaves it at
for x2, and the final set of option subparameters sets these values to 1.2 and 0.3, respectively.
Even if you specify a weight variable, the unweighted covariate means are used for the covariate coefficients if you omit the at parameter. If you specify the at parameter, then weight and frequency variables are taken into account as follows. The weighted covariate means are used for the covariate coefficients for which no explicit at parameter values are given, or if you specify the at='MEANS' parameter. Observations that do not contribute to the analysis because of a missing dependent variable are used in computing the covariate means. You should use the e parameter in conjunction with the at parameter to verify that the modified LS-means coefficients are the ones that you want.
-
cl=True | False
when set to True, constructs confidence limits for each of the LS-means. The mixed action computes t-type limits, whereas other actions compute normal (z) intervals. If you specify the dfMethod='NONE' subparameter of the model parameter in the mixed action, then infinite degrees of freedom are used for this test, which essentially computes a z interval. The confidence level is 0.95 by default; you can change the level by specifying the alpha parameter.
-
controlLevel={'level1' | <, 'level2', …>}
specifies the control levels of the specified least squares means effects. This parameter is used in conjunction with the control, controll, and controlu parameters. See the control parameter for more information.
-
corr
displays the estimated correlation matrix of the least squares means as part of the "Least Squares Means" table.
-
cov
displays the estimated covariance matrix of the least squares means as part of the "Least Squares Means" table.
-
df=number
specifies the degrees of freedom for the t test and confidence limits. The default is the residual degrees of freedom that you define by specifying the dfMethod='RESIDUAL' subparameter of the model parameter in the mixed action. This parameter is available only for the mixed action.
-
diff<=difftype>
-
displays differences of the LS-means in the "Differences of Least Squares Means" table. You can specify the following values for the optional difftype:
-
'ALL'
displays all pairwise differences.
-
'ANOM'
displays differences between each LS-mean and the average LS-mean, as in the analysis of means (Ott 1967). The average is computed as a weighted mean of the LS-means, with the weights being inversely proportional to the diagonal entries of the
matrix. When you specify a weight parameter, the preceding matrix is replaced with
, where
is the diagonal matrix that contains the weights. If LS-means are nonestimable, this design-based weighted mean is replaced with an equally weighted mean. Note that the ANOM procedure in SAS/QC software implements both tables and graphics for the analysis of means with a variety of response types. For one-way designs and normally distributed data, the ANOM computations are equivalent to the results of PROC ANOM.
-
'CONTROL'
-
produces two-tailed tests and confidence limits for differences with a control; by default, the control is the first level of each specified LS-mean effect. To specify which levels of the effects are the controls, specify the controlLevel parameter. For example, if the effects A, B, and C are classification variables, each having two levels, 1 and 2, the following lsmeans parameter specifies the (1,2) level of A*B and the (2,1) level of B*C as controls:
lsmeans={{statements={{
terms={{vars={'a','b'},interaction='CROSS'},
{vars={'b','c'},interaction='CROSS'}},
diff='CONTROL',
controlLevel={'1', '2', '2', '1'} }}}}
For multiple effects, the results depend on the order of the list, so you should check the output to make sure that the controls are correct.
-
'CONTROLL'
produces one-tailed results and tests whether the noncontrol levels are significantly smaller than the control. The upper confidence limits for the control minus the noncontrol levels are considered to be infinity and are displayed as missing.
-
'CONTROLU'
produces one-tailed results and tests whether the noncontrol levels are significantly larger than the control. The upper confidence limits for the noncontrol levels minus the control are considered to be infinity and are displayed as missing.
-
e=True | False
when set to True, displays the matrix coefficients for all LS-mean effects in the "Matrix Coefficients" table.
-
singular=number
tunes the estimability checking. If
is a vector, define ABS(
) to be the largest absolute value of the elements of
. If ABS(
) is greater than c*number for any row of
in the contrast, then
is declared nonestimable. Here,
is the Hermite form matrix
, and c is ABS(
), except when it equals 0, and then c is 1. The value of number is between 0 and 1; the default is 1E–4.
-
slice={{effect1} <,{effect2}, …>}
-
specifies effects by which to partition interaction LS-mean effects. This parameter is available only for the mixed action. This partition can produce what are known as tests of simple effects (Winer 1971). For example, suppose that A*B is significant, and you want to test the effect of A for each level of B. The appropriate lsmeans parameter is
lsmeans={{statements={{
terms={{vars={'a', 'b'}, interaction='CROSS'}}, slice={{vars={'b'}}} }}}}
This parameter tests for the simple main effects of A for B, which are calculated by extracting the appropriate rows from the coefficient matrix for the A*B LS-means and by using them to form an F test.
The slice parameter produces F tests that test the simultaneous equality of cell means at a fixed level of the slice effect (Schabenberger, Gregoire, and Kong 2000). It produces a table titled "Tests of Effect Slices."