******************************** ** Application 1 do file ******* ******************************** ** May 26, 2021 **************** ******************************** *First step is to change the directory to where the data sets are stored * cd "E:\My Drive\Heal STATA Trainings\Training 1\data" ******************************** * Practice * Question 1 * use campus, clear sum enroll * Question 2 * insheet using ACS cd "G:/Price/data" *Step 1* import excel using birth_data.xlsx, clear first sh("data") *Step 2* * Question 3 * sum birthweight * Question 4 * count * or you can see observations from the sum * * Question 5 * tab cigarettes * Question 6 * sum cigarettes * Question 7 * sum mother_age mother_education father_age father_education * Question 8 * sum apgar1 * Question 9 * tab apgar1 ** Question 10 * ttest birthweight=3371 * Question 11 * ttest birthweight, by(baby_gender) * Question 12 * ttest apgar1=apgar5