Question: hypo.pvalue.mean.R : # Defining a function hypo.pvalue.mean alfa do NOT reject H0 ) } } ================================================= hypo.pvalue.mean.two alpha do NOT reject H0 ) } }
hypo.pvalue.mean.R :
# Defining a function hypo.pvalue.mean alfa do NOT reject H0 ") } }
=================================================
hypo.pvalue.mean.two alpha do NOT reject H0 ") } } #-------------------------------------------------------------------
hypo.pvalue.prop.two alpha do NOT reject H0 ") } }
############################################################ # "ci_for_mean.two" function computes the CI for the # difference between two population means ############################################################
ci_for_mean_two
############################################################ # "ci_for_prop" function computes the CI for the difference # between two population proportions ############################################################
# Defining a function ci_for_prop_two
}
for parts of the question that has R sign next to it please solve using R-studio to solve . Please show the codes for R script thank you
Question 2 A study investigated the recovery period for COVID-19 patients in two different countries namely Country 1 and Country 2. Researchers tested the claim that average recovery period (in days) in Country 1 is longer than Country 2 at 1% significance level using random samples of 10000 patients in Country 1 and 7500 patients in county 2 who have recovered. a) Conduct the hypothesis testing procedure using critical value approach and interpret your result(Manual Solution). b) Validate your result in part a) manually using R (Use p-value approach). (Manual Computation) c) Using the relevant predefined functions, validate your answer in parts a and b by applying both critical value and p-value approaches. R
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
