Anxiety | R Documentation |
Data used in Exercise 2.96
Anxiety
A data frame/tibble with 20 observations on two variables
anxiety score before a major math test
math test score
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
plot(math ~ anxiety, data = Anxiety, ylab = "score",
main = "Exercise 2.96")
with(data = Anxiety,
cor(math, anxiety)
)
linmod <- lm(math ~ anxiety, data = Anxiety)
abline(linmod, col = "purple")
summary(linmod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.