Learn R Programming

BSDA (version 1.2.2)

Rainks: Rainfall in an area of west central Kansas and four surrounding counties

Description

Data for Exercise 9.8

Usage

Rainks

Arguments

Format

A data frame/tibble with 35 observations on five variables

rain

rainfall (in inches)

x1

rainfall (in inches)

x2

rainfall (in inches)

x3

rainfall (in inches)

x4

rainfall (in inches)

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples

Run this code

cor(Rainks)
model <- lm(rain ~ x2, data = Rainks)
summary(model)

Run the code above in your browser using DataLab