Week 11: Statistics in R

DATA 412/612 · November 11

Lectures

For a project, follow 11.1 from the first look through the model. Use 11.2 when the question is a comparison of groups, a proportion, or a table of counts.

Labs

Additional readings

Videos

Discussion

  • You open a new table for a project. What do you do before you call lm()?
  • wt and disp move together. How do you decide which one to keep, and what does anova() on the two nested fits add?
  • wt and hp live on different scales. What does standardizing change, and what stays the same?
  • The scatter of mpg against hp bends. When is a straight line enough, and when do you fit a spline?