Appex 08
STA 112 - Fall 2022
Part 1
- Create a new project from this template in RStudio Pro:
https://github.com/sta-112-f22/appex-08.git
- Replace the text in the top code chunk that says
INSERT YOUR GOOGLE SPREADSHEET URL HERE
with the Google Spreadsheet URL with your magnolia data. - Fit an intercept only model to calculate the average leaf length in your sample
- Use the
summary
function on the linear model you fit - What is the standard error for the mean length? Interpret this value.
Part 2
- Open
appex-08.qmd
- Calculate the \(t^*\) value for your confidence interval
- Calculate the confidence interval “by hand” using the \(t^*\) value from exercise 2 and the mean and standard error from the previous application exercise
- Calculate the confidence interval using the
confint
function - Interpret this value
Part 3
- Open
appex-08.qmd
- Fit the model of
leaf_width
andleaf_length
in your data - Calculate a confidence interval for the estimate \(\hat\beta_1\)
- Interpret this value
Part 4
- Open
appex-08.qmd
- Examine the summary of the model of
leaf_length
andleaf_width
with your data - Test the null hypothesis that there is no relationship between the length and width of magnolia leaves
- What is the p-value? What is the result of your hypothesis test?