spruce: spruce: Predicting Heights of Spruce Trees

spruceR Documentation

spruce: Predicting Heights of Spruce Trees

Description

This is data of the breast height diameters and heights for a sample of 36 white spruce trees. In forestry, the diameter of a tree at breast height (which is fairly easy to measure) is used to predict the height of the tree (a difficult measurement to obtain).

Usage

spruce

Format

A data frame with 36 observations (rows) and 2 variables (columns).

Column name Data type Description Values
[,1] DIAMETER numeric Diameter of the tree in cm (5.8 - 29.8)
[,2] HEIGHT numeric The height of the tree in meter (8.0 - 22.3)

Details

This data is from Exercise 3.56 in A second course in statistics: Regression Analysis, 7th edition.

Source

Mendenhall, W., Sincich, T. (2012) A second course in statistics: Regression Analysis, 7th edition. Pearson Education.

Examples


# First eight and last six rows
head(spruce, n = 8)
tail(spruce)

# Plotting the tree height against the diameter
plot(HEIGHT ~ DIAMETER, data = spruce)


thoree/stat340 documentation built on June 30, 2024, 4:04 p.m.