Learn R Programming

BSDA (version 1.2.2)

Moisture: Moisture content and depth of core sample for marine muds in eastern Louisiana

Description

Data for Exercise 9.32

Usage

Moisture

Arguments

Format

A data frame/tibble with 16 observations on four variables

depth

a numeric vector

moisture

g of water per 100 g of dried sediment

lnmoist

a numeric vector

depthsq

a numeric vector

References

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

Examples

Run this code

plot(moisture ~ depth, data = Moisture)
model <- lm(moisture ~ depth, data = Moisture)
abline(model, col = "red")
plot(resid(model) ~ depth, data = Moisture)
rm(model)

Run the code above in your browser using DataLab