Appex 12
STA 112 - Spring 2024
Part 1
- Copy the following template into RStudio Pro:
https://github.com/sta-112-s24/appex-12.git
- What are the variables in the
Diamonds
dataset? - What are the levels of the
Clarity
variable in theDiamonds
data? - Fit a model with
TotalPrice
as the outcome andClarity
as the explanatory variable - Change the referent category to
SI1
and refit the model - Add the variable
Depth
to your model. How do you interpret the coefficient for this parameter?
Part 2
- Open
appex-12.qmd
- Fit the model \(TotalPrice = \beta_0 + \beta_1Carat + \beta_2 Carat^2 + \beta_3 Color+\epsilon\)
- Find the 0.25 quantile and 0.75 quantile of
Carat
- What is the interpretation of \(\hat\beta_1\), \(\hat\beta_2\), and \(\hat\beta_3\)?