Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

We discussed the CDC demographics data in Example 15.10. The data are in demo d.short.rda, at the…

[ad_1]

We discussed the CDC demographics data in Example 15.10. The
data are in demo d.short.rda, at the book’s site.

1. Load the data and clean it from all NA. Keep the columns
Gender, Household Income from and Household Income to only.

2. Let Y = 0 for males and 1 for females.

3. Assign to X the mean of Household Income from and
Household Income to and $75 000 to Inf and rescale the data to $1 000 (divide
income by $1 000).

4. Fit a logistic model to gender vs. mean income and print
the results.

5. Plot the model with confidence intervals.

6. Interpret the results.

[ad_2]

Source link

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"