Scientists claim that there is a possible relationship between the severity of Covid-19 and a low level of blood vitamin D. The normal level for vitamin D is around 30ng/ml. For this reason, the vitamin D blood level has been measured for 2 countries, A and B, and recorded in a Microsoft Excel file (Vitamin D.xlsx). Enter this Excel file into the statistical package of your choice and answer all questions: (Please add the code and output to your answers.) a) Find the number of observations, mean, standard deviation of vitamin D level for the variables Country, Gender, and Sun_Exposure using the statistical package of your choice: b) Write down the statistical hypotheses for three separate analyses comparing the means of the groups in the following variables: (1) Country, (2) Gender, and (3) Sun_Exposure. Estimate the treatment effects for each of these three factors. Note: For the next questions, use a statistical software to randomly sample 30 observations for each Country, and save this subset of observations in a new dataset called "Question_1_Country". In SPSS: Data > Select Cases > Random sample of cases (you can save the random observations as a .sav or an excel file, if using SPSS). In R: you can use the following code to perform this random sampling. Learn this procedure as you may need to use it for other sections. Note: every time you run the following code, you will get a different dataset. Therefore, you will get different outputs (because of the random nature of random sampling). ### 30 Random observations for Country A ### Country A <- subset (Vitamin D, subset= Country="A") C.A - Country A[sample (nrow(Country_A), 30),] ### 30 Random observations for Country B ##* Country B <- subset (Vitamin D, subset= Country="B") C.B < Country B[sample (nrow(Country B),30),]
Scientists claim that there is a possible relationship between the severity of Covid-19 and a low level of blood vitamin D. The normal level for vitamin D is around 30ng/ml. For this reason, the vitamin D blood level has been measured for 2 countries, A and B, and recorded in a Microsoft Excel file (Vitamin D.xlsx). Enter this Excel file into the statistical package of your choice and answer all questions: (Please add the code and output to your answers.) a) Find the number of observations, mean, standard deviation of vitamin D level for the variables Country, Gender, and Sun_Exposure using the statistical package of your choice: b) Write down the statistical hypotheses for three separate analyses comparing the means of the groups in the following variables: (1) Country, (2) Gender, and (3) Sun_Exposure. Estimate the treatment effects for each of these three factors. Note: For the next questions, use a statistical software to randomly sample 30 observations for each Country, and save this subset of observations in a new dataset called "Question_1_Country". In SPSS: Data > Select Cases > Random sample of cases (you can save the random observations as a .sav or an excel file, if using SPSS). In R: you can use the following code to perform this random sampling. Learn this procedure as you may need to use it for other sections. Note: every time you run the following code, you will get a different dataset. Therefore, you will get different outputs (because of the random nature of random sampling). ### 30 Random observations for Country A ### Country A <- subset (Vitamin D, subset= Country="A") C.A - Country A[sample (nrow(Country_A), 30),] ### 30 Random observations for Country B ##* Country B <- subset (Vitamin D, subset= Country="B") C.B < Country B[sample (nrow(Country B),30),]
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Recommended textbooks for you
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman