Don't wanna be here? Send us removal request.
Text
Assignment 2:First code
Here is my Program(I have displayed only two variables since these are the ones I need for my study).
# -*- coding: utf-8 -*- """ Created on Wed Apr 22 23:12:43 2020
@author: rucha """ # Importing libraries import pandas import numpy #Loading dataset data= pandas.read_csv('C:/Users/rucha/directory/nesarc_pds.csv',low_memory=False) print(len(data)) #Number of rows print(len(data.columns)) #Number of columns print(len(data.index)) print('Title: Association of Alcohol abuse and Panic disorder in young adults') #Title print() #Frequency Distribution print('data not sorted since conver_numeric does not work on python 3.7!!!') print() print('Number of times drank 5+ drinks of alcohol:frequency') a1=data['S2AQ8E'].value_counts(sort=False) print(a1) print() print('Number of times drank 5+ drinks of alcohol:percentage') a2=data['S2AQ8E'].value_counts(sort=False, normalize=True) print(a2) print() print('Number of panic episodes') e1=data['S6Q13'].value_counts(sort=False) print(e1) print() print('Number of panic episodes:percentage') e2=data['S6Q13'].value_counts(sort=False, normalize=True) print(e2)
OUTPUT:
runfile('C:/Users/rucha/directory/code1.py', wdir='C:/Users/rucha/directory') 43093 35 43093 Title: Association of Alcohol abuse and Panic disorder in young adults
data not sorted since conver_numeric does not work on python 3.7!!!
Number of times drank 5+ drinks of alcohol:frequency 16147 3 605 4 787 1 356 10 1333 11 18892 99 164 5 950 9 1169 6 929 2 288 8 619 7 854 Name: S2AQ8E, dtype: int64
Number of times drank 5+ drinks of alcohol:percentage 0.374701 3 0.014039 4 0.018263 1 0.008261 10 0.030933 11 0.438401 99 0.003806 5 0.022045 9 0.027127 6 0.021558 2 0.006683 8 0.014364 7 0.019818 Name: S2AQ8E, dtype: float64
Number of panic episodes 38756 3 433 62 1 30 15 4 250 37 1 33 1 39 1 45 3 75 1 1 1998 14 2 10 116 11 2 98 44 56 1 99 398 72 1 5 158 60 2 9 3 26 1 90 1 52 1 15 25 24 4 16 3 6 124 40 6 2 544 20 53 22 1 35 2 12 43 8 22 23 1 7 35 50 22 32 1 80 1 25 12 27 2 29 2 Name: S6Q13, dtype: int64
Number of panic episodes:percentage 0.899357 3 0.010048 62 0.000023 30 0.000348 4 0.005801 37 0.000023 33 0.000023 39 0.000023 45 0.000070 75 0.000023 1 0.046365 14 0.000046 10 0.002692 11 0.000046 98 0.001021 56 0.000023 99 0.009236 72 0.000023 5 0.003666 60 0.000046 9 0.000070 26 0.000023 90 0.000023 52 0.000023 15 0.000580 24 0.000093 16 0.000070 6 0.002877 40 0.000139 2 0.012624 20 0.001230 22 0.000023 35 0.000046 12 0.000998 8 0.000511 23 0.000023 7 0.000812 50 0.000511 32 0.000023 80 0.000023 25 0.000278 27 0.000046 29 0.000046
Thank You:)
0 notes
Text
Assignment 1
I am most interested in studying panic disorders in adults since quite a few people around me are suffering from it. Alcohol consumption is more frequent and common than other drugs/substances consumption. Hence, I would like to find out if there is any relationship between alcohol consumption and panic disorder.
Studies show that most patients who seek help for panic disorders have alcohol addiction( Zvolensky, Bersnstein, Marshall, 2006) and yet a limited amount of study has been done on this. Non clinical panic can aggravate into panic disorder due to increased level of alcohol consumption (Deacon, Valentier,2000).
Research topic: Association between alcohol abuse and panic disorder
Hypothesis: There is a positive relationship between the two.
Secondary research topic: Does alcohol consumption lead to panic disorder more in women than in men
Dependent variable: alcohol consumption, number of times drank 5+ drinks of alcohol in last 12 months, number of years
Independent variable: panic disorder, number of episodes, onset of episodes, etc.
Codebook:
https://docs.google.com/document/d/1gQf_EQOpBfi9krgXWH21Knd9obI5uV_hO7d_CMUlDio/edit?usp=sharing
References:
1.Zvolensky, M. J., Bernstein, A., Marshall, E. C., & Feldner, M. T. (2006). Panic attacks, panic disorder, and agoraphobia: Associations with substance use, abuse, and dependence. Current psychiatry reports, 8(4), 279-285.
2.Deacon, B. J., & Valentiner, D. P. (2000). Substance use and non-clinical panic attacks in a young adult sample. Journal of Substance abuse, 11(1), 7-15.
0 notes