Question: Before opening the dataset needed for this problem, you'll need to call the car package: > library(car) Now you can import the Robey dataset and
Before opening the dataset needed for this problem, you'll need to call the "car" package:
> library(car)
Now you can import the "Robey" dataset and use it to answer the question below. Name the data frame with your EID:
> my_eid <- Robey
The Robey dataset contains fertility rates from a sample of countries. You want to see if total fertility rate (tfr), which is the average number of children per woman, can be explained by the percent of married women of childbearing age who use contraception (contraceptors) and the region of the country.
a. Run a two-way ANOVA (with interaction) to determine if region and contraceptors explain variance in total fertility rate and provide the model output. You do not need to write hypotheses, check assumptions, or write full conclusion. Just include the code and output in your submission.
b. write conclusion for all significant effects in context, citing the appropriate statistics.
c. Now run a GLM to answer the same question and provide the model output (again, you do not need to write hypotheses, check assumptions, or write conclusion). Just include the code and output in your submission.
d. Interpret the slope estimate of any significant effect in context.
e. Briefly explain what is similar in the output of your two models and what differs.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
