Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

Ordinary Differential Equations

Authors: William A Adkins, Mark G Davidson

1st Edition

1461436184, 9781461436188

More Books

Students also viewed these Mathematics questions

Question

T F 10. Financial markets only affect the participants in them.

Answered: 1 week ago