powered by
Data for Exercises 2.15, 2.44, 2.58 and Examples 2.3 and 2.20
Brain
A data frame with 28 observations on the following 5 variables.
Species
a factor with levels Africian elephant Asian Elephant Brachiosaurus Cat Chimpanzee Cow Diplodocus Donkey Giraffe Goat Gorilla Gray wolf Guinea Pig Hamster Horse Human Jaguar Kangaroo Mole Mouse Mt Beaver Pig Potar monkey Rabbit Rat Rhesus monkey Sheep Triceratops
Africian elephant
Asian Elephant
Brachiosaurus
Cat
Chimpanzee
Cow
Diplodocus
Donkey
Giraffe
Goat
Gorilla
Gray wolf
Guinea Pig
Hamster
Horse
Human
Jaguar
Kangaroo
Mole
Mouse
Mt Beaver
Pig
Potar monkey
Rabbit
Rat
Rhesus monkey
Sheep
Triceratops
body.wt
a numeric vector
brain.wt
logbody
logbrain
# NOT RUN { str(Brain) attach(Brain) plot(logbody,logbrain,pch=19,col="blue",main="Example 2.3") model <- lm(logbrain~logbody) abline(model) detach(Brain) # }
Run the code above in your browser using DataLab