0
$\begingroup$

so for my question it asks me to test if the intercept for a linear regression model is greater than 9 in R. I'm not exactly sure how to do that. any ideas? I tried the t-test manual but it's not working for me.

$\endgroup$
2
  • 1
    $\begingroup$ You will need to paste in the question for context. In addition, please add the [self-study] tag & read its wiki. Then tell us what you understand thus far, what you've tried & where you're stuck. We'll provide hints to help you get unstuck. $\endgroup$ Commented Oct 21, 2015 at 23:05
  • $\begingroup$ The estimate of your regressor with features = zero(s) should give you the intercept term. $\endgroup$
    – jeff
    Commented Oct 22, 2015 at 1:34

1 Answer 1

4
$\begingroup$

The R output, of summary(lm(y~x)), gives a parameter estimate $b_{0}$ and a standard error se($b_{0}$) for the intercept. The typical t-test (for $H_0: \beta_0 = 0$) is obtained by comparing $T = \frac{b_{0} - 0}{\text{se}(b_{0})}$ to a t-distribution with the number of degrees of freedom equal to the error degrees of freedom. So, how would you modify the statistic $T$ when your hypothesis is $H_0: \beta_0 = 9$?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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