Question

7. 1 Run Reset Create a 95% confidence interval for the average Fertility for a Swiss province in 1888 with: 40% of males inv8. predict Fertility, interval level = 0.95) prediction, 1 = 2 Run Reset 0.95) : Error in predict(Fertility, interval = pr

For Questions 4-11, use the swiss dataset, which is built into R.

Fit a multiple linear regression model with Fertility as the response and the remaining variables as predictors. You should use ?swiss to learn about the background of this dataset.

7. 1 Run Reset Create a 95% confidence interval for the average Fertility for a Swiss province in 1888 with: 40% of males involved in agriculture as occupation 28% of draftees receiving highest mark on army examination 10% of draftees obtaining education beyond primary school 42% of the population identifying as Catholic 27% of live births that live less than a year Report the lower bound of this interval. Enter answer here
8. predict Fertility, interval level = 0.95) "prediction", 1 = 2 Run Reset 0.95) : Error in predict(Fertility, interval = "prediction", level object 'Fertility' not found = Create a 95% prediction interval for the Fertility of a Swiss province in 1888 with: 40% of males involved in agriculture as occupation 28% of draftees receiving highest mark on army examination 10% of draftees obtaining education beyond primary school 42% of the population identifying as Catholic 27% of live births that live less than a year Report the lower bound of this interval. Enter answer here
0 0
Add a comment Improve this question Transcribed image text
Answer #1

7.

Ran the linear regression model as

model = lm(Fertility ~ . , data = swiss)

Create the dataframe of new observation with the given data.

new.data = data.frame(Agriculture=40, Examination=28, Education=10, Catholic=42, Infant.Mortality=27)

Run the predict.lm function to calculate 95% confidence interval.

predict.lm(model, new.data, interval = "confidence")
fit lwr upr
1 77.55014 69.4446 85.65567

Lower bound of the interval = 69.4446

8.

Run the predict.lm function to calculate 95% prediction interval.

predict.lm(model, new.data, interval = "prediction")
fit lwr upr
1 77.55014 60.96392 94.13635

Lower bound of the interval = 60.96392

Add a comment
Know the answer?
Add Answer to:
For Questions 4-11, use the swiss dataset, which is built into R. Fit a multiple linear regression model with Fertility...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • all data is built in in R 4. For Questions 4-11, use the swiss dataset, which is built into R. Fit a multiple linear re...

    all data is built in in R 4. For Questions 4-11, use the swiss dataset, which is built into R. Fit a multiple linear regression model with Fertility as the response and the remaining variables as predictors. You should use ?swiss to learn about the background of this dataset 1 Run Reset Use your fitted model to make a prediction for a Swiss province in 1888 with: 54% of males involved in agriculture as occupation 23% of draftees receiving highest...

  • For Questions 4-11, use the swiss dataset, which is built into R. Fit a multiple linear regression model with Fertility...

    For Questions 4-11, use the swiss dataset, which is built into R. Fit a multiple linear regression model with Fertility as the response and the remaining variables as predictors. You should use ?swiss to learn about the background of this dataset. 9. 1 Run Reset Report the value of the F statistic for the significance of regression test. Enter answer here point 10. 1 Run Reset 0.01. What decision do Carry out the significance of regression test using a you...

  • The built-in R dataset swiss gives Standardized fertility measure and socio-economic indicators for each of 47...

    The built-in R dataset swiss gives Standardized fertility measure and socio-economic indicators for each of 47 French-speaking provinces of Switzerland at about 1888. The dataset is a data frame containing 6 columns (variables). The column Infant.Mortality represents the average number of live births who live less than 1 year over a 3-year period. We are interested in the Infant.Mortality column. We can convert the data in this colun to an ordinary vector x by making the assignment x <- swiss$Infant.Mortality....

  • For this exercise we will run a regression using Swiss demographic data from around 1888. The...

    For this exercise we will run a regression using Swiss demographic data from around 1888. The sample is a cross-section of French speaking counties in Switzerland This data come with the R package datasets. The first step is to load the package into your current environment by typing the command libraryldatasets) in to the R console. This loads a number of datasets including one called swiss. Type help/swiss) in the console for additional details. The basic variable definitions are as...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT