|
Chapter Contents |
Previous |
Next |
| The SURVEYREG Procedure |
Each term in the MODEL statement, called an effect, is a variable or a combination of variables. You can specify an effect with a variable name or a special notation using variable names and operators. For more details on how to specify an effect, see the chapter titled "The GLM Procedure" in SAS/STAT User's Guide.
For each CONTRAST statement, PROC SURVEYREG computes Wald's F test. The procedure displays this value with the degrees of freedom, and identifies it with the contrast label. The numerator degrees of freedom for Wald's F test equals rank(L). The denominator degrees of freedom equals the number of clusters (or the number of observations if there is no CLUSTER statement) minus the number of strata. Alternatively, you can use the DF= option in the MODEL statement to specify the denominator degrees of freedom.
You can specify any number of CONTRAST statements, but they must appear after the MODEL statement.
In the CONTRAST statement,
You can specify the following options in the CONTRAST statement after a slash (/).
As stated previously, the CONTRAST statement enables you
to perform hypothesis tests
.
If the L matrix contains more than one contrast, then you can separate the rows of the L matrix with commas. For example, for the model
proc surveyreg;
class A B;
model Y=A B;
run;
with A at 5 levels and B at 2 levels, the parameter vector is

To test the hypothesis that the pooled A linear and A quadratic effect is zero, you can use the following L matrix:
![L = [ 0 & -2 & -1 & 0 & 1 & 2 & 0 & 0 \ 0 & 2 & -1 & -2 & -1 & 2 & 0 & 0 \ ]](images/svreq8.gif)
contrast 'A Linear & Quadratic'
a -2 -1 0 1 2,
a 2 -1 -2 -1 2;
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.