Question

# In this problem we will be modeling how life expectancy changes across the 50 states. To get more information

about the data set you can do

help(state.x77)

First we need to convert the state.x77 matrix into a data frame.

state_data <- data.frame(state.x77)

SOLVE:

(A) First look at the data using the command and report your initial visual conclusions.

pairs(state_data)

(B) I am going to remove Alaska from our analysis. Why do you think I am removing Alaska from our analysis?

no_alaska <- state_data[-2,]

(C) Next, we will fit a final model using forward selection with AIC.

inter_model <- lm(Life.Exp ~ 1, no_alaska)

forward_model <- step(inter_model, direction="forward", scope=(~Population+Income+Illiteracy+Murder+HS.Grad+Frost+Area))

Provide which variables were included in the model and the order in which they were included. You do not need to include all the output from the step command to answer this question.

(D) Report the summary output for the final model. Is it valid to conclude that given the variables Murder, HS.Grad and Population that the variable Frost has a significant relationship (at a .05 level) with life expectancy?

### Recently Asked Questions

- I am in elementary statistics, and cannot figure out how to find the P-value for z, t, and chi-squared. I do have a calculator that will find it for chi-square

- The t-test is used to: Group of answer choices Examine relationships between two variables. Examine the differences among three or more groups Test the power

- A city's bus's delayed time (X) is uniformly distributed between [0,Y] where 0 <= Y <= 1 and is uniformly disturbed. Suppose you observe a delay time X=x. a)