capture log close //close any open log files set linesize 120 //increase the linesize - helps for formatting the Markdown document quietly log using biostat212_cleaningExtraCredit_name.smcl, replace /*** #Biostat 212: 2017 #Data cleaning extra credit ## Your Name --- ***/ /*** _Instructions: turn in the MarkDoc PDF with your commands, output and answers_ --- ***/ /*** 1. Load the clean data set you created in assignment 2 --- ***/ /*** 2. Create a new running id variable (a unique number for each person in the data set) --- ***/ /*** 3. Convert the heart attack variable from a string to a categorical variable with a label. Tabulate your new heart attack variable ###How many people had a heart attack in this sample? [_Answer here_] --- ***/ /*** 4. Create a new binary (1/0) variable for people with very poor health status who also have diabetes. Assign a label to the values of this new variable ###What percent of the people in this sample have diabetes and very poor health status? [_Answer here_] --- ***/ /*** 5. Create a new variable that is quintiles of hdl. ###How many people are in the second quintile? [_Answer here_] --- ***/ markdoc biostat212_cleaningExtraCredit_name, replace export(pdf)