/* Call in PAT RAW DATA minutes file. Working data set is called minutes_file * *After running the program below, there will be 6,844,320 observations and 18 variables in the dataset Each observation represents 1 minute for 10080 minutes in 1 week for 679 participants * *NOTE these are raw data files (at the minute level) and do not have weights or strata variables unless summed to the person level * For more information, please contact: NYC Department of Health & Mental Hygiene Bureau of Epidemiology Services EpiDatarequest@health.nyc.gov *********************************************************************; /*enter in the pathway where dataset and format programs are stored*/ libname accl_min 'X'; /* run the formats below */ proc format; value monthf 1="January" 2="February" 3="March" 4="April" 5="May" 6="June" 7="July" 8="August" 9="September" 10="October" 11="November" 12="December"; value dowf 1="Sunday" 2="Monday" 3="Tuesday" 4="Wednesday" 5="Thursday" 6="Friday" 7="Saturday" ; data minutes_file; set accl_min.minutes_file; format dow dowf. month monthf.; run; /********Instructions for analyzing PAT data***************** NOTE: RAW DATA from the minutes file do not have sample weights; thus these data are not representative of NYC in their raw form Only person-level data should be used for prevalence estimate with confidence interval using the code and variables from the survey or accelerometer person level files TO GET CONFIDENCE INTERVALS AND PREVALENCE ESTIMATES YOU CAN ADD THE VARIABLES WT_PATW2ACCEL strata_pat FROM THE "ACCL_PUBLIC" DATASET AND FOLLOW THE INSTRUCTIONS LISTED IN THE CALLIN CODE FOR "ACCL_PUBLIC" PATCID CAN BE USED AS AN ID VARIABLE ON BOTH DATASETS ************************************************************************************/