Homework- Week 2
Title: The Relationship Between the Family History and Depression
1. Run a SAS Program
FILENAME REFFILE '/home/liwenzhang08220/my_courses/nesarc.csv';
PROC IMPORT DATAFILE=REFFILE
DBMS=CSV
OUT=WORK.IMPORT;
GETNAMES=YES;
RUN;
PROC CONTENTS DATA=WORK.IMPORT;
RUN;
proc freq; tables S4BQ1 S4BQ2 S4BQ3C S4BQ4C S4BQ5C S4BQ6C;
label S4BQ1="Blood/Natural Father Ever Depressed"
S4BQ2="Blood/Natural Mother Ever Depressed"
S4BQ3C="Any Full Bothers Ever Depressed"
S4BQ4C="Any Full Sisters Ever Depressed"
S4BQ5C="Any Natrual Sons Ever Depressed"
S4BQ6C="Any Natrual Daughters Ever Depressed";
run;
Interpretation: database of nesarc.csv was inputed by the FILENAME REFFILE rather than libaname
2. The output
3. Interpretation
I am very interested in researching the association between family history and depression. So, variables are the family number who was ever depressed, including parents (S4BQ1 and S4BQ2), Bothers (S4BQ3C), Sisters (S4BQ4C), Sons (S4BQ5C) and Daughters (S4BQ6C). In addition, for this homework, I just interpret frequency tables from parents, sisters, and sons.
1, Yes; 2, No; 9, Unknown. Unknown is the missing data
Tables 1 shows the distributions of responses for blood/natural father ever depressed. 9.57 % of fathers (4126) is ever depressed and 74.70 % of fathers (32192) is never depressed. 15.72 % is unknown-- missing data.
Tables 2 shows the distributions of responses for blood/natural mother ever depressed. 16.55 % of mothers (7134) is ever depressed and 72.98 % of mothers (31448) is never depressed. 10.47 % is unknown- missing data.
Tables 3 shows the distributions of responses for any full bothers ever depressed. 9.06 % of brothers (3903) is ever depressed and 83.03 % of brothers (35778) is never depressed. 7.92 % of brothers is unknown (missing data).
Tables 4 shows the distributions of responses for any full sisters ever depressed. 11.02 % of sisters (4751) is ever depressed and 81.84 % of sisters (35266) is never depressed. 7.14 % of sisters is unknown (missing data).














