gosaltybouquetphantom-blog
gosaltybouquetphantom-blog
Coursera week 1
5 posts
Don't wanna be here? Send us removal request.
gosaltybouquetphantom-blog · 8 years ago
Text
Coursera Week 4 assignment
This is assignment on charting.
I have done charting on the basis of:
1. univariate analysis: on basis of sex . What is the sex distribution of responders
2. univariate analysis of frequency of depression episodes
3. multivariate analysis: relation between sex and frequency of drinking in last 12 months
4. multivariate analysis : relation between drinking and frequency of depression
Conclusion:
1. The frequency of drinking in males ("1") was 8, the frequency of drinking in females ("2") was 8.2
2. The frequency of depression episodes was8.2 in males and 8.1 in females
3. Surprisingly females had a marginally higher frequency of drinking than males
4. The frequency of depression episodes were similar in male and female
Codes:
LIBNAME mydata "/courses/d1406ae5ba27fe300" access= readonly; DATA new; set mydata.nesarc_pds; KEEP SEX S2AQ4B S4AQ1 IDNUM; LABEL SEX="SEX OF RESPONDENTS"  S2AQ4B="FREQUENCY OF DRINKING IN LAST 12 MONTHS"  S4AQ1= "EVER HAD 2-WEEK PERIOD WHEN FELT SAD";  AGE= "AGE"; /*Univariate analysis of sex*/ PROC GCHART; VBAR SEX/Discrete type= PCT Width= 25; /*Bivariate graph*/ PROC GCHART; VBAR SEX/Discrete type=mean sumvar= S2AQ4B; RUN;
Output:
0 notes
gosaltybouquetphantom-blog · 8 years ago
Text
Week 3 assignment
I  this assignment, I have set the responses where no of alcoholic units consumed in last 12 months were set to 'missing'
In next step I have defined the risk levels by defining a new variable risk l
low_risk (1) = "More than once a month"
medium_risk (2) = "Once or twice a week/ 2 to 3 times a month/ once a month"*
high_risk (3) = "Every day/nearly every day drinker"*
CODE
LIBNAME mydata "/courses/d1406ae5ba27fe300" access= readonly; DATA new; set mydata.nesarc_pds; KEEP RISK SEX S2AQ4B S4AQ1 AGE IDNUM; LABEL SEX="SEX OF RESPONDENTS"  S2AQ4B="FREQUENCY OF DRINKING IN LAST 12 MONTHS"  S4AQ1= "EVER HAD 2-WEEK PERIOD WHEN FELT SAD"; /*Subsetting the data into adults 18-45 years, by sex, byfrequency of drinking*/ IF AGE >= 18; IF AGE <= 45; /*Setting the 'unknown' response of S2AQ4B to 'missing'*/ IF S2AQ4B= 99 THEN S2AQ4B=.; /*Setting the type of drinker to low_risk, medium_risk, high_risk */ /*high_risk= "Every day/nearly every day drinker"*/ /*medium_risk= "Once or twice a week/ 2 to 3 times a month/ once a month"*/ /*low_risk= "More than once a month"*/ IF S2AQ4B= 1 THEN RISK= 1; IF S2AQ4B= 2 THEN RISK= 1; IF S2AQ4B= 3 THEN RISK= 2; IF S2AQ4B= 4 THEN RISK= 2; IF S2AQ4B= 5 THEN RISK= 2; IF S2AQ4B= 6 THEN RISK= 3; IF S2AQ4B= 7 THEN RISK= 3; IF S2AQ4B= 8 THEN RISK= 3; IF S2AQ4B= 9 THEN RISK= 3; IF S2AQ4B= 10 THEN RISK= 3; PROC SORT; by IDNUM; PROC FREQ; TABLES SEX S2AQ4B AGE S4AQ1 RISK; RUN;
OUTPUT
No of responders at low_risk: 70 (1.18%)
No of responders at medium_risk: 646(10.85%)
No of responders at high_risk: 5237 (87.97%)
Output:
The FREQ Procedure
The FREQ Procedure
Table SEX
One-Way Frequencies
SEX OF RESPONDENTSSEXFrequencyPercentCumulative FrequencyCumulative Percent11008744.001008744.0021283956.0022926100.00
Table S2AQ4B
One-Way Frequencies
FREQUENCY OF DRINKING IN LAST 12 MONTHSS2AQ4BFrequencyPercentCumulative FrequencyCumulative Percent
Frequency Missing = 16973
1370.62370.622330.55701.183861.441562.6242003.363565.9853606.0571612.03660210.11131822.14783614.04215436.1885369.00269045.199141123.70410168.8910185231.115953100.00
Table AGE
One-Way Frequencies
AGEFrequencyPercentCumulative FrequencyCumulative Percent187463.257463.25197223.1514686.40207153.1221839.52217483.26293112.78227343.20366515.99237313.19439619.17248033.50519922.68256392.79583825.46266282.74646628.20277023.06716831.27287213.14788934.41297773.39866637.80308693.79953541.59318613.761039645.35328733.811126949.15338463.691211552.84348433.681295856.52358613.761381960.28368853.861470464.14379914.321569568.46389894.311668472.77399244.031760876.80409924.331860081.13418813.841948184.97429123.982039388.95438323.632122592.58448233.592204896.17458783.8322926100.00
Table S4AQ1
One-Way Frequencies
EVER HAD 2-WEEK PERIOD WHEN FELT SADS4AQ1FrequencyPercentCumulative FrequencyCumulative Percent1668329.15668329.1521577768.822246097.9794662.0322926100.00
Table RISK
One-Way Frequencies
RISKFrequencyPercentCumulative FrequencyCumulative Percent
Frequency Missing = 16973
1701.18701.18264610.8571612.033523787.975953100.00
0 notes
gosaltybouquetphantom-blog · 8 years ago
Text
Output:
1. Of the drinkers, 44% were males and 56% were females
2. The maximum frequency of drinking was 10 times in last 12 months
3. 68% patients had 2 episodes of sadness in last 2 weeks
Results:
The FREQ Procedure
The FREQ Procedure
Table SEX
One-Way Frequencies
“SEX OF RESPONDENTS”SEXFrequencyPercentCumulative FrequencyCumulative Percent11008744.001008744.0021283956.0022926100.00
Table S2AQ4B
One-Way Frequencies
“FREQUENCY OF DRINKING IN LAST 12 MONTHS”S2AQ4BFrequencyPercentCumulative FrequencyCumulative Percent
Frequency Missing = 16962
1370.62370.622330.55701.173861.441562.6242003.353565.9753606.0471612.01660210.09131822.10783614.02215436.1285368.99269045.109141123.66410168.7610185231.05595399.8299110.185964100.00
Table AGE
One-Way Frequencies
AGEFrequencyPercentCumulative FrequencyCumulative Percent187463.257463.25197223.1514686.40207153.1221839.52217483.26293112.78227343.20366515.99237313.19439619.17248033.50519922.68256392.79583825.46266282.74646628.20277023.06716831.27287213.14788934.41297773.39866637.80308693.79953541.59318613.761039645.35328733.811126949.15338463.691211552.84348433.681295856.52358613.761381960.28368853.861470464.14379914.321569568.46389894.311668472.77399244.031760876.80409924.331860081.13418813.841948184.97429123.982039388.95438323.632122592.58448233.592204896.17458783.8322926100.00
Table S4AQ1
One-Way Frequencies
“EVER HAD 2-WEEK PERIOD WHEN FELT SAD”S4AQ1FrequencyPercentCumulative FrequencyCumulative Percent1668329.15668329.1521577768.822246097.9794662.0322926100.00
Week 2 assignment
We are trying to find the frequency of drinks in adults between age 18-45 years; their frequency of drinking and the major depression episodes.
SAS Code:
LIBNAME mydata “/courses/d1406ae5ba27fe300” access= readonly; DATA new; set mydata.nesarc_pds; LABEL SEX=“SEX OF RESPONDENTS”  S2AQ4B=“FREQUENCY OF DRINKING IN LAST 12 MONTHS”  S4AQ1= “EVER HAD 2-WEEK PERIOD WHEN FELT SAD”; /*Subsetting the data into adults 18-45 years, by sex, byfrequency of drinking*/ IF AGE >= 18; IF AGE <= 45; PROC SORT; by IDNUM; PROC FREQ; TABLES SEX S2AQ4B AGE S4AQ1; RUN
Output:
1 note · View note
gosaltybouquetphantom-blog · 8 years ago
Text
Week 2 assignment
We are trying to find the frequency of drinks in adults between age 18-45 years; their frequency of drinking and the major depression episodes.
SAS Code:
LIBNAME mydata "/courses/d1406ae5ba27fe300" access= readonly; DATA new; set mydata.nesarc_pds; LABEL SEX="SEX OF RESPONDENTS"  S2AQ4B="FREQUENCY OF DRINKING IN LAST 12 MONTHS"  S4AQ1= "EVER HAD 2-WEEK PERIOD WHEN FELT SAD"; /*Subsetting the data into adults 18-45 years, by sex, byfrequency of drinking*/ IF AGE >= 18; IF AGE <= 45; PROC SORT; by IDNUM; PROC FREQ; TABLES SEX S2AQ4B AGE S4AQ1; RUN
Output:
1 note · View note
gosaltybouquetphantom-blog · 8 years ago
Text
Effect of alcoholism on depression
I have chosen this topic because alcoholism is quiet a taboo among the young generation. Chronic alcoholism has several disadvantages including the one that leads to depression.
 I will explore the relation between alcohol consumption and major depression.
 Limited publications are available to explore relation between alcohol use and depression.
Paschall et al explored association between moderate alcohol use and depressive mood among young adults. They found that moderate alcohol use may have no effect on depression in young adults relative to abstinence from alcohol use.
I would like to reinstate the findings from this study including relation between depression and alcoholism in moderate, heavy drinkers and life time abstainers.
 Reference
1.       Paschall MJ, Freisthler B, Lipton RI. Moderate alcohol use and depression in young adults: findings from a national longitudinal study. Am J Public Health. 2005;95(3):453-7.
0 notes