The PHREG Procedure |
TEST Statement |
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 (/):
enables you to assess the average effect of the variables in the given TEST statement. An overall estimate of the treatment effect is computed as a weighted average of the treatment coefficients as illustrated in the following statement:
TREATMENT: test trt1, trt2, trt3, trt4 / average;
Let , , , and be corresponding parameters for trt1, trt2, trt3, and trt4, respectively. Let be the estimated coefficient vector and let be the corresponding variance estimate. Assuming , let be the average treatment effect. The effect is estimated by , where and . A test of the null hypothesis is also included, which is more sensitive than the multivariate test for testing the null hypothesis .
specifies that the linear coefficients and constants be printed. When the AVERAGE option is specified along with the E option, the optimal weights of the average effect are also printed in the same tables as the coefficients.
displays intermediate calculations. This includes bordered by , and bordered by , where is a matrix of linear coefficients and is a vector of constants.
See the section Using the TEST Statement to Test Linear Hypotheses for details.
Copyright © SAS Institute, Inc. All Rights Reserved.