Ask a question to Desklib · AI bot

Ask NowBETA

Biostatistics Assignment 1

Added on -2019-09-23

This assignment covers topics like binomial test, Wilcoxon rank sum test, paired t-test, chi-squared test, and sample size calculation. It includes solutions to questions related to biostatistics.
| 5 pages
| 1172 words
| 298 views

Trusted by 2+ million users,
1000+ happy students everyday

Biostatistics Assignment 1401077 Introduction to Biostatistics, Autumn 2018Assignment 2 Question 1 a.> table(survey$sex)female male 121 150 > binom.test(121, 271, + 0.5,+ alternative="two.sided",+ conf.level=0.95)Exact binomial testdata: 121 and 271number of successes = 121, number of trials = 271, p-value = 0.08878alternative hypothesis: true probability of success is not equal to 0.595 percent confidence interval: 0.3863346 0.5078372sample estimates:probability of success 0.4464945 Point estimate = 0.446494595% Confidence interval (0.3863346 0.5078372)b.I am 95% confident that estimated population proportion of females lie in the interval (0.39, .51). Mendenhall, W. M., Sincich, T. L., & Boudreau, N. S. (2016).c.Since confidence interval contains the value 0.50, I can say that 50% of 17-year-olds in NSW are female.Question 2 a.> hist(survey$MVPA, col="green")
Biostatistics Assignment 2The distribution of MVPA is skewed to the right. This indicates there are very fewobservations of large values of MVPA.Mendenhall, W. M., Sincich, T. L., & Boudreau,N. S. (2016).b.Null hypothesis, ho: there is no significant difference in the average self-reportedhours of MVPA per week is equal between males and females.Alternative hypothesis, h1: there is a significant difference in the average self-reported hours of MVPA per week is equal between males and females.> wilcox.test(survey$MVPA~survey$sex)Wilcoxon rank sum test with continuity correctiondata: survey$MVPA by survey$sexW = 8539.5, p-value = 0.404alternative hypothesis: true location shift is not equal to 0with w=8539.5, p>5%, I fail to reject null hypothesis and conclude that there is nosignificant difference in the average self-reported hours of MVPA per week is equalbetween males and females.Tartakovsky, A., Nikiforov, I., & Basseville, M. (2014).Question 3 (4 marks)a.

Found this document preview useful?

You are reading a preview
Upload your documents to download
or
Become a Desklib member to get accesss

Students who viewed this