Finding the p-value of a linear regression
Not all positive or negative slopes are necessarily real. A p-value is a way of assessing whether a trend could be due to chance. Generally, data scientists set a threshold by declaring that, for example, p-values below .05 are significant.
US_fit
is still available in your workspace. In this linear model, what is the p-value of the relationship between year
and percent_yes
?
This exercise is part of the course
Case Study: Exploratory Data Analysis in R
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
