<label:> TEST equation <, …, equation> </ options>;
The TEST statement tests linear hypotheses about the regression coefficients. PROC PHREG performs a Wald test for the joint hypothesis specified in a single TEST statement. Each equation specifies a linear hypothesis; multiple equations (rows of the joint hypothesis) 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 < term …> <= < term < term …>>>
where term is a variable or a constant or a constant times a variable. The variable is any explanatory variable in the MODEL statement. When no equal sign appears, the expression is set to 0. The following program illustrates possible uses of the TEST statement:
proc phreg; model time= A1 A2 A3 A4; Test1: test A1, A2; Test2: test A1=0,A2=0; 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.
The following options can be specified in the TEST statement after a slash (/):
For more information, see the section Using the TEST Statement to Test Linear Hypotheses.