Learn R Programming

MPV (version 1.64)

p5.21: Data Set for Problem 5-21

Description

The p5.21 data frame has 4 observations on 2 variables (replicated 4 times).

Usage

data(p5.21)

Arguments

Format

This data frame contains the following columns:

Mix.Rate

a numeric vector

y1

a numeric vector

y2

a numeric vector

y3

a numeric vector

y4

a numeric vector

Examples

Run this code
 cementStrength <- reshape(p5.21, idvar = "Mix.Rate", varying=list(2:5), 
    direction="long", v.names=c("TensileStrength"))
 rownames(cementStrength) <- NULL
 anova(lm(TensileStrength ~ Mix.Rate*time, data = cementStrength))

Run the code above in your browser using DataLab