Learn R Programming

MPV (version 1.64)

p5.11: Data Set for Problem 5-11 of the Third Edition of MPV

Description

The p5.11 data frame has 8 observations on an experiment with a catapult. This data set is used in Exercise 5.13 of the 6th edition of MPV.

Usage

data(p5.11)

Arguments

Format

This data frame contains the following columns:

x1

hook

x2

arm length

x3

start angle

x4

stop angle

yi1

response 1

yi2

response 2

yi3

response 3

See Also

p5.13

Examples

Run this code
attach(p5.11)
ybar.i <- apply(p5.11[,5:7], 1, mean)
sd.i <- apply(p5.11[,5:7], 1, sd)
y.lm <- lm(ybar.i ~ x1 + x2 + x3 + x4)
plot(y.lm, which=1)
detach(p5.11)

Run the code above in your browser using DataLab