1. Regression on Pearson's father-son data
a) Get the classical Pearson's father-son data by the following R commands
install.packages("UsingR"); library(UsingR); data(father.son);
Or, download the data somewhere from the web (assume it is in a file called father.son.Data which is in the working directory). load it by:
father.son<-read.table("father.son.Data", header=TRUE,sep="");
fheight<-father.son[,1];
sheight<-father.son[,2];
b) Produce a scatter plot of father's height (x axis) Vs son's height (y axis). Example R command:
plot(father.son$fheight, father.son$sheight, xlab="Father's height (in)",
ylab="Son's height (in)", pch=20);
c) Add the regression line on the scatter plot
d) Report the linear regression output (including R^2 etc)