Lab 12 Practice
Lab 12 Practice
Lab 12 Practice
Lab 12
PRACTICE
For this lab we will use Dr. Craig Hadleys data set regarding the social determinants
of wellbeing in adolescents in Ethiopia. This data set is ethiopia.csv, and as a
comma separated value data set you must to specify comma field separators to
import the data correctly.
In the lab practice we investigated factors related to bmi. For your
practice, lets investigate factors related to mid-upper arm circumference
(muac_cm). We want to determine if mid-upper arm circumference differs
by age and gender.
1. Perform a basic summary of your data set. You should see that age is
considered as a numeric variable (you see a numeric summary of the age
variable). For this practice, lets consider age as a categorical variable. That
is, lets consider the 13 year olds, the 14 year olds, etc, as independent
groups. To do so, you will need to create a new categorical variable in R
related to the age categories.
Data -> Manage variables in active data set -> Convert numeric variables
to factors
Highlight
age.
Now identify how many teenagers you have in each age group.
a.
b.
c.
d.
e.
13
14
15
16
17
year
year
year
year
year
olds,
olds,
olds,
olds,
olds,
n=
n=
n=
n=
n=
423
444
446
355
265