Question: Coding is in Rstudio 12 / 16 90% Question 5 [5 pts total] You are a blostatistician working for the California Department of Public Health.

Coding is in Rstudio

Coding is in Rstudio 12 / 16 90% Question 5 [5 pts

12 / 16 90% Question 5 [5 pts total] You are a blostatistician working for the California Department of Public Health. You are given a dataset (called COVID_CA) with COVID-19 mortality rates in California, Oregon, and Washington and are told to clean, manipulate, and analyze the data to report back to your team. a. [1 pt] You first want to subset your data to only contain observations from California and assign it to a new dataset called COVID_CA. The variable 'res state' describes which state each Individual resides In. Write the appropriate line of code that outputs this information. b. [1 pt] Next, you want to see how many observations are in your COVID_CA dataset. Write the appropriate line of code that outputs this information. c. [2 pts] You'd like to stratify your COVID CA data to visualize the mortality rates by sex. You create the 2x2 table called COVID CA_2 shown below with the variables death and sex. Fill in the code that will output the plot below. ## # A tibble: 4 x 3 # # sex death number ## ## 1 Female No 716595 ## 2 Female Yes 16724 ## 3 Male No 653407 ## 4 Male Yes 23784

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!