MATH 456 Homework 08

Due 2026-04-21 by 11:59pm

Use the abalone data set (with associated metadata) to answer the questions below. Please push the data set into your GitHub repository for this homework.

  1. Fit a unique intercepts and unique slopes linear regression model to predict age (measured in years) using sex (with levels M for male, I for infant, and F for female) and height (measured in mm) as the explanatory variables. Use our bootstrap function to find a confidence interval for the slope on height for males.

    a. Use the function predict.

    b. Don't use the function predict, instead use only the coefficients from the model.

    c. Interpret your confidence interval in context of the data.

  2. Use logistic regression to predict sex == "M" using a second order model in age and height. Use our bootstrap function to find a confidence interval for the slope on age, for the mean value of height.

    a. Interpret your confidence interval in context of the data.