Question
PLEASE HELP me with these question Here is the website:https://ourworldindata.org/grapher/daily-covid-cases-deaths (Links to an external site.) To read data into R: coviddeaths attach(coviddeaths) > usdeaths detach(coviddeaths)
PLEASE HELP me with these question
Here is the website:https://ourworldindata.org/grapher/daily-covid-cases-deaths
(Links to an external site.)
To read data into R:
coviddeaths <- read.csv("/Users/cigdemalagoz/Documents/BUSI2305/biweekly-change-covid-deaths.csv", header=TRUE)
Use str(coviddeaths) to check variable names
This data is from many countries. To select USA we subset the coviddeaths data into usdeaths with the following 3 lines
> attach(coviddeaths)
> usdeaths<-coviddeaths[ which(coviddeaths$Code=="USA"),]
> detach(coviddeaths)
Question 1:see if the average number of deaths in USA is larger than another country. choose another country which have the data for and write your research question for the comparison.
Question 2:What is the best measure of central tendency (mean, mode, median) to represent the average number of deaths for covid19? Why? To facilitate the comparison,use R to calculate the mean eventually even if that might not be the best measure of central tendency.
Question 3:Write hypothesis for research question?
Question 4:Use R to calculate the mean and standard deviation for US and the country of choice. What is the difference in average number of daily deaths between these two countries?
Create a chart for the two countries:
rename the deaths column in excel before reading into R. either do that or look at the variable name using str function and use that variable name.
dotchart(usdeaths$deaths,col="red",pch=0,main="graph of daily deaths",xlab="death",ylab="days")
Question 5.Is the difference from question 4 statistically significant?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started