asking about some code in rstudio

How the code to use to calculate the standard error Sb1 of a slope b1 of the regression line.

how the code to use to deduce the 95% confidence interval of the slope b1.

how the code ro use to Test at the 5% threshold if the slope is significantly different from 0.

Assuming you are using the lm() function to fit a linear model, applying the summary() and confint() functions to the fitted model will give the results you need.

Hi, welcome!

Homework inspired questions are welcome here, but you have to tell us what have you tried so far? what is your specific problem? We are more inclined towards helping you with specific coding problems rather than doing your work for you.

For guidelines about how to properly ask homework related questions here, please read our homework policy.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.