Question: Fit a simple linear regression model for the Galton dataset as seen in Example 4.5.1. Compare the values of the regression coefficients of the linear

Fit a simple linear regression model for the Galton dataset as seen in Example 4.5.1. Compare the values of the regression coefficients of the linear regression model for this dataset with the previously obtained resistant line coefficients.


Data from in Example 4.5.1

This dataset was used earlier as an example of an x-y plot. The scatter plot of the parents and the child reflected weak correlation in Figure 4.11, and now we examine and estimate the effect by using the resistant line model. The function resistant_line from the companion package will be used to build the model 4.11.

> library (UsingR) > data (galton) >rgalton plot (galtonsparent, galtonschild, xlab="Parent's Height",

The fitted resistant line, see Figure 4.14, tells us that if the parents were taller by an inch, the child’s height would be more than an inch taller too.


For two factors, or covariates, an extension of the resistant line model 4.11, will be next considered.

+ ylab="Child's Height") > curve (rgalton$coeffs [1] +rgalton$coeffs [2] * (x-rgalton$xCenter), +

> library (UsingR) > data (galton) >rgalton plot (galtonsparent, galtonschild, xlab="Parent's Height", + ylab="Child's Height") > curve (rgalton$coeffs [1] +rgalton$coeffs [2] * (x-rgalton$xCenter), + add=TRUE) >rgalton$coeffs [1] 68.5 1.0

Step by Step Solution

3.45 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The regression coefficients of the linear regression model for this dataset are 064 and ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related A Course In Statistics With R Questions!