|
沙发

楼主 |
发表于 2012-8-5 18:36:20
|
只看该作者
Re: 恳求各位大侠指导一下
[color=#FF0040:2savz1nm]lsmeans [/color:2savz1nm]
[color=#0000FF:2savz1nm]
Least-squares means (LS-means) are computed for each effect listed in the LSMEANS statement. You may specify only classification effects in the LSMEANS statement - that is, effects that contain only classification variables. You may also specify options to perform multiple comparisons. In contrast to the MEANS statement, the LSMEANS statement performs multiple comparisons on interactions as well as main effects.
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 class and subclass arithmetic means are to balanced designs. Each LS-mean is computed as L'b for a certain column vector L, where b is the vector of parameter estimates - that is, the solution of the normal equations.
[/color:2savz1nm]
[color=#FF0040:2savz1nm] pdiff [/color:2savz1nm]
[color=#0000BF:2savz1nm]
requests that p-values for differences of the LS-means be produced. The optional difftype specifies which differences to display. Possible values for difftype are ALL, CONTROL, CONTROLL, and CONTROLU. The ALL value requests all pairwise differences, and it is the default. The CONTROL value requests the differences with a control that, by default, is the first level of each of the specified LS-mean effects.
To specify which levels of the effects are the controls, list the quoted formatted values in parentheses after the keyword CONTROL. For example, if the effects A, B, and C are class variables, each having two levels, '1' and '2', the following LSMEANS statement specifies the '1' '2' level of A*B and the '2' '1' level of B*C as controls:
lsmeans A*B B*C / pdiff=control('1' '2', '2' '1');
For multiple effect situations such as this one, the ordering of the list is significant, and you should check the output to make sure that the controls are correct.
[/color:2savz1nm]
[color=#FF0040:2savz1nm]stderr [/color:2savz1nm]
[color=#0000FF:2savz1nm]
produces the standard error of the LS-means and the probability level for the hypothesis H0: LS-mean = 0.
[/color:2savz1nm]
[color=#FF0040:2savz1nm]tdiff[/color:2savz1nm]
[color=#0000BF:2savz1nm]
produces the t values for all hypotheses H0: LS-mean(i) = LS-mean(j) and the corresponding probabilities.
[/color:2savz1nm] |
|