The SURVEYLOGISTIC Procedure

TEST Statement

  • <label:> TEST equation1 <, equation2, …> </ option>;

The TEST statement tests linear hypotheses about the regression coefficients. The Wald test is used to jointly test the null hypotheses (upper H 0 colon bold upper L bold-italic theta equals bold c) specified in a single TEST statement. When bold c equals bold 0 you should specify a CONTRAST statement instead.

Each equation specifies a linear hypothesis (a row of the bold upper L matrix and the corresponding element of the bold c vector); multiple equations are separated by commas. The label, which must be a valid SAS name, is used to identify the resulting output and should always be included. You can submit multiple TEST statements.

The form of an equation is as follows:

term < plus-or-minus term …> < = plus-or-minus term < plus-or-minus term …>>

where term is a parameter of the model, or a constant, or a constant times a parameter. For a binary response model, the intercept parameter is named INTERCEPT; for an ordinal response model, the intercept parameters are named INTERCEPT, INTERCEPT2, INTERCEPT3, and so on. When no equal sign appears, the expression is set to 0. The following illustrates possible uses of the TEST statement:

proc surveylogistic;
   model y= a1 a2 a3 a4;
   test1: test intercept + .5 * a2 = 0;
   test2: test intercept + .5 * a2;
   test3: test a1=a2=a3;
   test4: test a1=a2, a2=a3;
run;

Note that the first and second TEST statements are equivalent, as are the third and fourth TEST statements.

You can specify the following option in the TEST statement after a slash (/):

PRINT

displays intermediate calculations in the testing of the null hypothesis upper H 0 colon bold upper L bold-italic theta equals bold c. This includes bold upper L ModifyingAbove bold upper V With caret left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis bold upper L prime bordered by left-parenthesis bold upper L ModifyingAbove bold-italic theta With caret minus bold c right-parenthesis and left-bracket bold upper L ModifyingAbove bold upper V With caret left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis bold upper L prime right-bracket Superscript negative 1 bordered by left-bracket bold upper L ModifyingAbove bold upper V With caret left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis bold upper L prime right-bracket Superscript negative 1 Baseline left-parenthesis bold upper L ModifyingAbove bold-italic theta With caret minus bold c right-parenthesis, where ModifyingAbove bold-italic theta With caret is the pseudo-estimator of bold-italic theta and ModifyingAbove bold upper V With caret left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis is the estimated covariance matrix of ModifyingAbove bold-italic theta With caret.

For more information, see the section Testing Linear Hypotheses about the Regression Coefficients.

Last updated: December 09, 2022