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

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 ##
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
