*You will need to change the following working directory: cd "/Users/kristenaiemjoy/Box Sync/_Teaching/Biostat 212/Biostat212.2018/Assignments/Assignment 1" capture log close quietly log using biostat212_2018_Assignment1_YourName.smcl, replace /*** #Biostat 212: Assignment 1 ##Due 8/14/18 @ 1PM ####_Your Name_ --- #Instructions The goal of this assignment is for you to familiarize yourself with STATA’s basic commands and to be able to explore data using an existing STATA dataset. We will use data from the NHANES study. Find more about NHANES here: https://www.cdc.gov/nchs/nhanes/index.htm Fill in the answer and include the command (use lab 1 as an example) Turn in the PDF or DocX you generate from this .do file using MarkDoc Round numeric answers to 2 decimal points. ####35 points total Question 1 worth 1 point. Questions 2-14 worth 2 points each (1 point for correct answer, 1 point for command). Questions 15-16 wirth 3 points each (1 point for correct answer, 2 point for command). --- ***/ /*** ### 1. Load the NHANES2 data set from the web ***/ /*** ### 2. How many observations are there? __Answer = XX__ ***/ /*** ### 3. How many variables are there? __Answer = XX__ ***/ /*** ### 4. How many participants are 70 years old and older? __Answer = XX__ ***/ /*** ### 5. What is the age range of participants? (min/max) __Answer = XX__ ***/ /*** ### 6. Are there any duplicate observations? __Answer = XX__ ***/ /*** ### 7. What are the highest 3 values of serum copper? ___Answer = XX___ ***/ /*** ### 8. What is the average value of serum copper? __Answer = XX__ ***/ /*** ### 9. What is the median value of serum copper in women? __Answer = XX__ ***/ /*** ### 10. How many participants have diabetes? __Answer = XX__ ***/ /*** ### 11. What is the mean BMI for participants with diabetes? __Answer = XX__ ***/ /*** ### 12. What percentage of participants live in rural areas? __Answer = XX%__ ***/ /*** ### 13. 1. What percentage of participants living in rural areas have diabetes? __Answer = XX%__ ***/ /*** ### 14. What percentage of male participants had a heart attack? __Answer = XX%__ ***/ /*** ### 15. What percentage of female participants had a heart attack? __Answer = XX%__ ***/ /*** ###16. Choose a dichotomous exposure (ind) variable and continuous outcome(dep) variable: ####What is the average value of the outcome variable among study participants according to your chosen dichotomous predictor variable? __Answer = XX__ ***/ /*** ### 17. Choose a dichotomous exposure(ind) variable and dichotomous outcome(dep) variable: ####What percent of study participants have your chosen outcome according to your chosen dichotomous predictor variable? __Answer = XX__ ***/ qui log close //create MarkDoc markdoc biostat212_2018_Assignment1_YourName, replace statax export(pdf)