Week 2 Task: Exploratory Analysis
Read the prior entry of this blog here: http://dwdanalysis.tumblr.com/post/129415966684/week-1-task-research-question
For this week’s assignment, I ran the following code in SAS:
LIBNAME mydata "/courses/d1406ae5ba27fe300 " access=readonly; DATA new; set mydata.nesarc_pds; LABEL S2DQ1="Alcoholic Father?" S2DQ2="Alcoholic Mother?" S2DQ3C2="Alcoholic Brothers?" S2DQ3C1="Number of alcoholic brothers" S2DQ4C2="Alcoholic Sisters?" S2DQ4C1="Number of alcoholic sisters" S2DQ5C2="Alcoholic sons?" S2DQ5C1="Number of alcoholic sons" S2DQ6C2="Alcoholic daughters?" S2DQ6C1="Number of alcoholic daughters" S12Q2A1="Gamble to get out of bad mood?" S12Q2C1="Ever gambled to get out of problems?" S12Q2A3="More than once tried to unsuccessfully quit gambling?" S12Q2A4="Had to increase money to keep gambling exciting?" S12Q2A8="Job or school problems because of gambling?" S12Q2A8A="Broke up with someone because of gambling?" S12Q2A9="Kept family or friends from knowing of gambling behavior?" S12Q2A10="Financial trouble?" S12Q3D="Age at onset of pathological gambling" S12Q3I="Age at full remission of pathological gambling" S12Q6A="Went to gamblers anonymous?" S12Q7A="Ever went to specialist for help?"; PROC SORT; by IDNUM; PROC FREQ; TABLES S2DQ1 S2DQ2 S12Q2A3;
RUN;
The last line of code produces the following output:
The codebook for my NESARC data project can be found here: http://dwdanalysis.tumblr.com/post/129495409449/my-codebook
For my research project, I have produced and analyzed more variables (the ones that have been re-labeled in the SAS code), but for the purposes of this week’s assignment, I will only analyze the prior three.
The first and second tables show the frequencies for the amount of subjects who have an alcoholic father and mother, respectively. Out of a total sample of 43093 subjects, almost a fifth stated that they had an alcoholic father, while only 5.36% stated to have an alcoholic mother. Responses for 5.86% and 2.85% of the sample were unknown, respectively. There were no missing data for these variables.
The last table shows the amount of subjects who tried unsuccessfully to quit gambling. There were 31940 missing observations for this variable, which means that these subjects never tried to unsuccessfully quit gambling, or it was unknown. It is not clear yet what is the difference between this category, and the one coded as 9 (”unknown”), which has 19 subjects. Only 2.92% (n=326) answered yes. It is also not clear yet if the 10808 subjects who answered no did so because they didn’t suffer from pathological gambling, or because they suffered from it but hadn’t tried quitting, or they tried quitting but couldn’t do it.
Part of the exploratory analysis of any project consists of getting closer to answering the main research question by looking at the data one variable at a time. This process often generates more questions than answers, and more exploratory analyses are still needed to answer these questions, but at least I think I’m on the right track.









