Part A (Introduction): a) Write an introduction: • Explain the problem in general (e.g., vitamin D deficiency and recommended vitamin D level). Support your opinion with at least one reference (Harvard referencing), and Introduce all 5 variables: country (add frequency table), sun exposure (add frequency table), gender (add frequency table), age (add summary statistics vs. country, sun exposure and gender), and vitamin D level (add summary statistics vs. country, sun exposure and gender). Plot a histogram with a superimposed normal curve for both age and vitamin D level and describe your findings. Convert age to a categorical variable (call it NewAge) with 2 levels (<40= "1", ≥ 40 "11")
Part A (Introduction): a) Write an introduction: • Explain the problem in general (e.g., vitamin D deficiency and recommended vitamin D level). Support your opinion with at least one reference (Harvard referencing), and Introduce all 5 variables: country (add frequency table), sun exposure (add frequency table), gender (add frequency table), age (add summary statistics vs. country, sun exposure and gender), and vitamin D level (add summary statistics vs. country, sun exposure and gender). Plot a histogram with a superimposed normal curve for both age and vitamin D level and describe your findings. Convert age to a categorical variable (call it NewAge) with 2 levels (<40= "1", ≥ 40 "11")
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

Transcribed Image Text:Part A (Introduction):
a) Write an introduction:
• Explain the problem in general (e.g., vitamin D deficiency and
recommended vitamin D level). Support your opinion with at least one
reference (Harvard referencing), and
Introduce all 5 variables: country (add frequency table), sun exposure
(add frequency table), gender (add frequency table), age (add summary
statistics vs. country, sun exposure and gender), and vitamin D level (add
summary statistics vs. country, sun exposure and gender).
Plot a histogram with a superimposed normal curve for both age and
vitamin D level and describe your findings.
Convert age to a categorical variable (call it NewAge) with 2 levels
(<40 = "1", ≥ 40 "11")

Transcribed Image Text:Country
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
Male
Male
Male
Male
Male
Female
Female
Female
Female
Female
Other
Other
Other
Other
Other
Male
Male
Male
Male
Male
Gender
Female
Female
Female
Female
Female
Other
Other
Other
Other
Other
Male
Male
Male
Male
Male
Female
Female
Female
Female
Female
Other
Other
Other
Other
Other
Male
Male
Male
Male
Male
Female
Female
Female
Female
Female
Other
Other
Other
Other
Other
Male
Male
Male
Male
Male
Female
Female
Female
Female
Female
Other
Other
Other
Other
Other
Male
Male
Male
Male
Male
Female
Female
Female
Female
Female
Other
Other
Other
Other
Other
Sun_Exposure
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
High
High
High
High
High
High
High
**********
High
High
High
High
High
High
High
High
Low
[[[[[[[[[
Low
Low
Low
Low
Low
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
High
High
High
High
High
High
High
*********
High
High
High
High
High
High
High
High
Age
37
31
33
38
37
36
32
36
32
37
39
33
32
38
37
34
22
38
38
38
33
37
39
38
38
37
21
38
39
30
38
39
23
37
35
34
37
30
37
39
36
37
37
38
29
52
47
46
45
47
47
46
41
42
47
51
47
49
35
51
49
47
46
41
47
49
43
48
47
49
45
49
49
40
47
45
49
45
47
47
41
44
51
34
47
49
46
47
46
45
Vitamin_D_Level
45
40
39
42
38
38
39
37
44
38
43
36
41
44
34
48
57
38
45
37
60
40
42
42
44
39
38
39
45
47
55
59
46
55
51
49
51
62
55
53
53
66
53
51
57
53
47
57
47
51
49
53
55
45
48
51
48
46
51
45
45
58
48
55
52
44
48
48
48
62
52
52
55
65
55
62
65
52
57
62
60
62
64
63
63
63
62
61
67
75
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 4 steps with 4 images

Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question
The r code for side by side boxplot of vitamind v newage and vitamin d v country.
Solution
Follow-up Question

Transcribed Image Text:Part B (Methodology):
In your methodology section, introduce the following three analyses with
assumptions and models.
The response variable for all models will be vitamin D level.
•
Factorial ANOVA - two factors: "Sun_Exposure", "Gender"
Blocking (randomised design) - two fixed factors: "Sun_Exposure",
"Gender" and one random factor: "Country"
ANCOVA - two factors: "Sun_Exposure", "Gender" and continuous
variable: "Age".
Based on your findings in Part A, explain why we expect to get similar results for
these factorial ANOVA and ANCOVA tests.
Solution
Follow-up Question

Transcribed Image Text:Part B (Methodology):
In your methodology section, introduce the following three analyses with
assumptions and models.
The response variable for all models will be vitamin D level.
Factorial ANOVA - two factors: "Sun_Exposure", "Gender"
Blocking (randomised design) - two fixed factors: "Sun_Exposure",
"Gender" and one random factor: "Country"
• ANCOVA - two factors: "Sun_Exposure", "Gender" and continuous
variable: "Age".
Based on your findings in Part A, explain why we expect to get similar results for
these factorial ANOVA and ANCOVA tests.
Solution
Follow-up Question

Transcribed Image Text:Create a side-by-side boxplot for vitamin D level vs. NewAge and a side-
by-side boxplot for vitamin D level vs. country.
Create a scatterplot to show the relationship between vitamin D level
and Age.
Compare these two side-by-side boxplots and the scatterplot and explain
your findings.
• Note: Write appropriate captions for the tables, graphs, and outputs.
Solution
Follow-up Question

Transcribed Image Text:Part A (Introduction):
a) Write an introduction:
• Explain the problem in general (e.g., vitamin D deficiency and
recommended vitamin D level). Support your opinion with at least one
reference (Harvard referencing), and
Introduce all 5 variables: country (add frequency table), sun exposure
(add frequency table), gender (add frequency table), age (add summary
statistics vs. country, sun exposure and gender), and vitamin D level (add
summary statistics vs. country, sun exposure and gender).
Plot a histogram with a superimposed normal curve for both age and
vitamin D level and describe your findings.
Convert age to a categorical variable (call it NewAge) with 2 levels
(<40 = "1", ≥ 40 "11")
Create a side-by-side boxplot for vitamin D level vs. NewAge and a side-
by-side boxplot for vitamin D level vs. country.
Create a scatterplot to show the relationship between vitamin D level
and Age.
Compare these two side-by-side boxplots and the scatterplot and explain
your findings.
• Note: Write appropriate captions for the tables, graphs, and outputs.
Part B (Methodology):
In your methodology section, introduce the following three analyses with
assumptions and models.
The response variable for all models will be vitamin D level.
• Factorial ANOVA - two factors: "Sun_Exposure", "Gender"
•
Blocking (randomised design) - two fixed factors: "Sun_Exposure",
"Gender" and one random factor: "Country"
•
ANCOVA - two factors: "Sun_Exposure", "Gender" and continuous
variable: "Age".
Based on your findings in Part A, explain why we expect to get similar results for
these factorial ANOVA and ANCOVA tests.
Solution
Follow-up Question

Transcribed Image Text:Country
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
Gender
Male
Male
Male
Male
Male
Female
Female
Female
Female
Female
Other
Other
Other
Other
Other
Male
Male
Male
Male
Male
Female
Female
Female
Female
Female
Other
Other
Other
Other
Other
Male
Male
Male
Male
Male
Female
Female
Female
Female
Female
Other
Other
Other
Other
Other
Male
Male
Male
Male
Male
Female
Female
Female
Female
Female
Other
Other
Other
Other
Other
Male
Male
Male
Male
Male
Female
Female
Female
Female
Female
Other
Other
Other
Other
Other
Male
Male
Male
Male
Male
Female
Female
Female
Female
Female
Other
Other
Other
Other
Other
Sun_Exposure
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
High
High
High
High
High
High
High
**********
High
High
High
High
High
High
Hight
High
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Low
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
Moderate
High
Hight
High
High
High
High
High
High
********
High
High
High
High
High
High
High
Age
37
31
33
38
37
36
32
36
32
37
39
33
32
38
37
34
22
38
38
38
33
37
39
38
38
37
21
38
39
30
38
39
23
37
35
34
37
30
37
39
36
37
37
38
29
52
47
46
45
47
47
46
41
42
47
51
47
49
35
51
49
47
46
41
47
49
43
48
47
49
45
49
49
40
47
45
49
45
47
47
41
44
51
34
47
49
46
47
46
45
Vitamin_D_Level
45
40
39
42
38
38
39
37
44
38
43
36
41
44
34
48
57
38
45
37
60
40
42
42
44
39
38
39
45
47
55
59
46
55
51
ឧ៤៩៦ ឌ__៖ ឌ ភក្ត
49
51
62
55
53
53
66
53
51
57
53
47
57
47
51
49
53
55
45
48
51
48
46
51
45
45
58
48
55
52
44
48
48
48
62
52
52
55
65
55
62
65
52
57
62
60
62
64
63
63
63
62
61
67
75

Transcribed Image Text:Part A (Introduction):
a) Write an introduction:
.
Explain the problem in general (e.g., vitamin D deficiency and
recommended vitamin D level). Support your opinion with at least one
reference (Harvard referencing), and
• Introduce all 5 variables: country (add frequency table), sun exposure
(add frequency table), gender (add frequency table), age (add summary
statistics vs. country, sun exposure and gender), and vitamin D level (add
summary statistics vs. country, sun exposure and gender).
Plot a histogram with a superimposed normal curve for both age and
vitamin D level and describe your findings.
Convert age to a categorical variable (call it NewAge) with 2 levels
(<40= "1", ≥ 40 "11")
Create a side-by-side boxplot for vitamin D level vs. NewAge and a side-
by-side boxplot for vitamin D level vs. country.
Create a scatterplot to show the relationship between vitamin D level
and Age.
Compare these two side-by-side boxplots and the scatterplot and explain
your findings.
Note: Write appropriate captions for the tables, graphs, and outputs.
Solution
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