Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We have investigated the relationship between fathers' heights and sons' heights. But what about other parent-child relationships? Does one parent's height have a stronger association

We have investigated the relationship between fathers' heights and sons' heights. But what about other parent-child relationships? Does one parent's height have a stronger association with child height? How does the child's gender affect this relationship in heights? Are any differences that we observe statistically significant?

Thegaltondataset is a sample of one male and one female child from each family in theGaltonFamiliesdataset. Thepaircolumn denotes whether the pair is father and daughter, father and son, mother and daughter, or mother and son.

Create thegaltondataset using the code below:

library(tidyverse)

library(HistData)

data("GaltonFamilies")

set.seed(1) # if you are using R 3.5 or earlier

set.seed(1, sample.kind = "Rounding") # if you are using R 3.6 or later

galton <- GaltonFamilies %>%

group_by(family, gender) %>%

sample_n(1) %>%

ungroup() %>%

gather(parent, parentHeight, father:mother) %>%

mutate(child = ifelse(gender == "female", "daughter", "son")) %>%

unite(pair, c("parent", "child"))

galton

Question 8

0.0/2.0 points (graded)Group bypairand summarize the number of observations in each group.

How many father-daughter pairs are in the dataset?

How many mother-son pairs are in the dataset?

Question 10 hastwo parts. The information here applies to both parts.

Uselm()and thebroompackage to fit regression lines for each parent-child pair type. Compute the least squares estimates, standard errors, confidence intervals and p-values for theparentHeightcoefficient for each pair.

Question 10a

0/2 points (graded)What is the estimate of the father-daughter coefficient?

For every 1-inch increase in mother's height, how many inches does the typical son's height increase?

Give your answer as a number with no units.

Question 10b

0.0/2.0 points (graded)

Which sets of parent-child heights are significantly correlated at a p-value cut off of .05?

Select ALL that apply.

Which of the following statements are true?

Select ALL that apply.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Mathematics questions