Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 - Preliminary Data Wrangling The below code chunk reads in the data, removes Alaska and Hawaii (we are only working with the contiguous

image text in transcribed
image text in transcribed
Part 1 - Preliminary Data Wrangling The below code chunk reads in the data, removes Alaska and Hawaii (we are only working with the contiguous United States) and saves it as county_data . It also reports the proportion of counties with 0 deaths and 0 cases. county_data % filter (!State %in% c ("AK", "HI") ) county_data >% summarize (Proportion_county_no_cases = mean (Total_cases==0), Proportion_county_no_deaths = mean (Total_deaths==0) ) %>%% kable () Proportion_county_no_cases Proportion_county_no_deaths 0.0006435 0.0814028 You should note that a non-negligible proportion of counties in the United States have reported no Coronavirus related deaths, whereas few counties have reported no cases at all. This causes our response variable for the day, death rates in counties, to be zero inflated - modeling this sort of data is incredible important in science and society but is outside the scope of this course. In module 6 we handled the few zero cases by arbitrarily adding a constant (i.e., 1) to all the responses. Technically we could do that here, but then we would have 1-inflated data - it would not really fix the underlying "inflation" problem. In the below code chunk, filter the data such that only counties with at least 1 death are retain. Note, by only working with a subset of the data, we now have a different target population than the original sample. Describe what the target population for the inference and analysis using this data. ANSWER HERE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Entropy And Diversity The Axiomatic Approach

Authors: Tom Leinster

1st Edition

1108962173, 9781108962179

More Books

Students also viewed these Mathematics questions

Question

Personal role: This consists of service to family and friends.

Answered: 1 week ago