Learn R Programming

MPV (version 2.0)

p5.12: Data Set for Problem 5-12

Description

The p5.12 data frame has 27 observations on 9 variables.

Usage

data(p5.12)

Arguments

Format

This data frame contains the following columns:

i

a numeric vector

xi

a numeric vector

x2

a numeric vector

x3

a numeric vector

yi1

response 1

yi2

response 2

yi3

response 3

in211.1.gif

a numeric vector

si

a numeric vector

Examples

Run this code
data(p5.11)
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