Assignment 1
Assignment 1
Statistical Computing I
Age of students: 19, 22, 23, 18, 27, 25, 27, 20, 21, 29
Gender of students: Female, Male, Male, Male, Male, Male, Male, Male, Male, Male
Height of students in meter: 1.557, 1.678, 1.7, 1.898, 1.666, 1.5, 1.6, 1.645, 1.45, 1.77
Students monthly average income in birr: 200, 750, 1200, 2300, 150, 3250, 350, 430, 780, 825
The date students starts Statistical Computing I class: 12/30/2021, 12/30/2021, 12/28/2021,
b. Assign the label value of 0=female and 1=male for sex variable.
c. Create the new variable called “BMI” from weight and height of students. Use the
formula of 𝐵𝑀𝐼 =
d. Use Age variable, and then categorize it into “agecat” with values of 0 for <21 years, 1
e. Use sex variable, and then recode in to sex1 variable with values of 8888 for female and
f. Without delating any data, select the data for female students only!