Question: 1. Using the permanent SAS data set that you created in Homework #1 of the 200 babies, you will manipulate the data using IF-TI-[EN-ELSE IF

 1. Using the permanent SAS data set that you created in

1. Using the permanent SAS data set that you created in Homework #1 of the 200 babies, you will manipulate the data using IF-TI-[EN-ELSE IF statements and create new variables. The variables that were listed are given below. You will need to refer back to Homework #1 to determine your variable names. Variable Column Variable Typi- Sex 1-6 Character Prenatal care 9-12 Character Smoking status 17-19 Character Weeks gestation 25-26 Numeric Birth weight in grams 33-36 Numeric Length in inches 41-44 Numeric Date of birth 49-58 Date in WDDYY format a. Create a new variable for preterm birth that has two levels using the weeks gestation variable with values of 1 for preterm and 0 for term. Any baby who had a gestation of strictly less than 3? weeks is considered preterm. Those greater than or equal to 3'? weeks are considered term. Using the birth weight in grams variable create a variable that has three levels that indicates low, normal, and large birth weights, assigning values of -l to low, 0 to normal, and 1 to large. Any baby who has a birth weight less than 2500 grams is considered having a low birth weight, any baby who has a birth weight between 2500 and 4000 grams inclusive is considered having a normal birth weight, and any baby greater than 4000 grams is considered having a large birth weight. Give a frequency distribution of all categorical variables, including the two new categorical variables. Title your tables. Give a cross tabulation of preterm birth with the following variables: the new birth weight group, sex, prenatal care, and smoking status. Title your tables

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!