Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

Say I have fitted a model using

proc reg data = data; 
  model a = b; 
run;

How do I test if the coefficient of b is, say, less than 1?

share|improve this question

2 Answers

up vote 3 down vote accepted

This is in no way specific to SAS but if you have the coefficient estimate, $\hat{\beta}$ and the standard error, $s$, and you want to test the null hypothesis $H_{0} : \beta = \beta_{0}$ then the test statistic is

$$ T = \frac{ \hat{\beta} - \beta_{0} }{ s } $$

which has a $t$-distribution with $n-2$ degrees of freedom, denoted by $t_{n-2}$. To do a 1-sided test of "greater than" calculate the area to the right of $T$ under the $t_{n-2}$ distribution. Similarly, to do a one-sided test of "less than", calculate the area to the left. To do a two-sided test, find twice the area to the left of $-|T|$. I'm no SAS expert but I believe the areas under the $t$-distribution can be calculated using the tinv() command.

share|improve this answer

Use the TEST statement. So for your example you would have:

proc reg data = data;
model a = b; 
test b=1;
run;
share|improve this answer
is this a one-sided test? – Macro Aug 17 '11 at 13:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.