Learn R Programming

BSDA (version 1.01)

Brain: Brain weight versus body weight of 28 animals

Description

Data for Exercises 2.15, 2.44, 2.58 and Examples 2.3 and 2.20

Usage

Brain

Arguments

Format

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

body.wt

a numeric vector

brain.wt

a numeric vector

logbody

a numeric vector

logbrain

a numeric vector

Examples

Run this code
# 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