Learn R Programming

BSDA (version 1.01)

Anxiety: Math test scores versus anxiety scores before the test

Description

Data used in Exercise 2.96

Usage

Anxiety

Arguments

Format

A data frame with 20 observations on the following 2 variables.

anxiety

a numeric vector

math

a numeric vector

Examples

Run this code
# NOT RUN {
attach(Anxiety)
plot(anxiety,math)
cor(anxiety,math)
linmod <- lm(math~anxiety)
abline(linmod)
summary(linmod)
detach(Anxiety)
# }

Run the code above in your browser using DataLab