Tumgik
kriti0899 · 4 years
Text
ASSIGNMENT-4
The below code shows the addhealth survey .
Tumblr media Tumblr media
The univariate graph for total sports played is PLAYED_TOTAL_SPORTS
Tumblr media Tumblr media
The graph is bimodal. One peak occurs at 1 and other at 5.
The graph is skewed left as there is higher frequencies in the lower numer of sports palyed . The highest peak at PLAYED_TOTAL_SPORT equals 1.
The biviariate graph between SPORTSCAT and HEATH OF THE PERSON is 
SPORTSCAT shows that which sports category person belongs to . category 1 shows person plays 3 kinds of sports , category 2 shows person playes 6 kind of sports ...and so on.
HEALTH_OF_THE_PERSON shows the health of the person .Excellent health is shown by 1 and as number increases , health of the person decreases to poor.
Tumblr media Tumblr media
The graph clearly shows as the sports category hence no of sports played increases , the health of the person decreases.
The univariate relationships 
Tumblr media Tumblr media
the frequency tables for variables are.
Tumblr media Tumblr media
                                                                     -KRITI SINGH
0 notes
kriti0899 · 4 years
Text
ASSIGNMENT-3
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
First table shows how many times the student played any sport in a week. played_any_sport is the sum of H1DA4, H1DA5, H1DA6. ‘.’ shows that the question is refused to answer or do not know the answer.
The first frequency table shows how much a person works at home like cooking etc. If a person refuses to answer or dont know are kept in missing data.
The second frequency table shows first kind of sport like roller blading, cycling, etc. the answers such as don’t know, refused to answer are represented as missing data.
The third frequency table shows second kind of sport like playing an active sport.The answers such as don’t know, refused to answer are represented as missing data.
                                                                    -KRITI SINGH
0 notes
kriti0899 · 4 years
Text
SAS program of Addhealth daily activities survey.
Tumblr media Tumblr media Tumblr media
For first question “ During the past week, how many times did you do hobbies, such as collecting baseball cards, playing a musical instrument, reading, or doing arts and crafts? “21.77% said not at all,  33.26 %   said 1-2 times,22.12%    said 3-4 times,  22.74 % said 5 or more times,  0.03 % refused to answer the question,  0.08 %don’t know.
For second question” During the past week, how many times did you watch television or videos, or play video games? “ 3.43% said no, 15.85%said 1-2 times, 22.03% said 3-4 times, 58.59%said 5 times or more,  0.03% refused to answer, 0.06% said they don’t know.
For third question “ During the past week, how many times did you just hang out with friends? “ 9.76% said no, 23.29% said 1-2 times, 26.95% said 3-4 times,  39.90%  said 5 or more times,   0.03%refused to answer the question, 0.06% don’t know.
                                                                            -KRITI SINGH
0 notes
kriti0899 · 4 years
Text
Daily Activities and suicide
With reference to the datasets of ADDHEALTH year 1995.
1.   Daily activities during adolescence.
2.   Thought of committing suicide
CODEBOOK FOR 1
1. During the past week, how many times did you do hobbies, such as
collecting baseball cards, playing a musical instrument, reading, or
doing arts and crafts?                                                              H1DA2                                                  
1416                       0                                not at all
2163                        1                           1 or 2 times
1439                        2                               3 or 4 times
1479                         3                              5 or more times
2                              6                                refused
5                                8                                  don’t know
2. During the past week, how many times did you watch television or
videos, or play video games?                                                                                                                                                                                H1DA3
223                        0                                       not at all
1031                     1                                         1 or 2 times
1433     ��               2                                         3 or 4 times
3811                     3                                           5 or more times
2                          6                                            refused
4                         8                                           don’t know
3. During the past week, how many times did you go roller-blading,
roller-skating, skate-boarding, or bicycling?                                                                                                                                                                      H1DA4
4101                              0                                        not at all
1341                             1                                       1 or 2 times
551                               2                                        3 or 4 times
505                                3                                       5 or more times
2                                    6                                     refused
4                                 8                                         don’t know
4. During the past week, how many times did you play an active sport,
such as baseball, softball, basketball, soccer, swimming, or football?                                                                                                                           H1DA5
1908                                 0                                              not at all
1786                                1                                                1 or 2 times
1222                             2                                                  3 or 4 times
1582                                3                                               5 or more times
2                                     6                                                  refused
4                                  8                                                    don’t know
5. During the past week, how many times did you do exercise, such as
jogging, walking, karate, jumping rope, gymnastics or dancing?                                                                                                                                 H1DA6
1072                               0                                             not at all
2059                               1                                             1 or 2 times
1618                                2                                             3 or 4 times
1749                              3                                                 5 or more times
2                                     6                                                    refused
4                                  8                                                     don’t know
6. During the past week, how many times did you just hang out with
friends?                                                                                                                                                                                                                          H1DA7
635                                     0                                                not at all
1515                                  1                                              1 or 2 times
1753                                2                                              3 or 4 times
2595                                  3                                               5 or more times
2                                        6                                                 refused
4                                      8                                                   don’t know
7. How many hours a week do you watch television?                   H1DA8
136                                 0                                             does not watch television
634                                 1                                              range 1 to 99 hours
3                                  996                                              refused
24                              998                                                 don’t know
8. How many hours a week do you watch videos?                                                                                                                                                         H1DA9
1554                                        0                                does not watch videos
493                                           0                                range 1 to 99 hours
3                                             996                                 refused
16                                         998                                   don’t know
CODEBOOK FOR 2
1. During the past 12 months, did you ever seriously think about
committing suicide?                                                                                                                                 H1SU1
5614                                0                                     no [skip to Q.4]
821                                   1                                     yes
46                                  6                                          refused [skip to Q.4]
22                                 8                                            don’t know [skip to Q.4]
1                                        9                                      not applicable [skip to Q.4]
2. During the past 12 months, how many times did you actually attempt
suicide?                                                                                                                                                       H1SU2
587                                            0                                  0 times [skip to Q.4]
131                                           1                                   1 time
64                                              2                                     2 or 3 times
10                                               3                                       4 or 5 times
25                                              4                                        6 or more times
3                                                6                                            refused [skip to Q.4]
5683                                         7                                              legitimate skip
1                                                8                                              don’t know [skip to Q.4]
3. Did any attempt result in an injury, poisoning, or overdose that had to
be treated by a doctor or nurse?                                                  H1SU3                                                              
164                                            0                                        no
66                                                 1                                     yes
6274                                            7                                      legitimate skip [did not attempt suicide]
4. Have any of your friends tried to kill themselves during the past 12
months?                                                                          H1SU4
5291                                  0                                  no [skip to Q. 6]
113                                   1                                    1 yes
39                                   6                                      refused [skip to Q. 6]
42                                   8                                     don’t know [skip to Q. 6]
1                                   9                                        not applicable [skip to Q. 6]
5. Have any of them succeeded?                                           H1SU5
950                             0                                     no
179                          1                                         yes
1                                6                                      refused
5373                          7                                  legitimate skip
1                                8                                       don’t know
6. Have any of your family tried to kill themselves during the past 12
months?                                                                            H1SU6
6115                            0                         no [skip to Q. 8]
310                             1                           yes
40                              6                        refused [skip to Q.8]
38                              8                      don’t know [skip to Q.8]
1                             9                       not applicable [skip to Q.8]
7. Have any of them succeeded?                                         H1SU7
239                         0                         no
69                          1                           yes
6194                       7                      legitimate skip [no family members tried to kill                                                           themselves]
2                           8                       don’t know
It has been seen that a person in adolescence is more likely to think about suicide then any normal adult. Also how a person reacts to the thought of suicide is mostly associated with what all he does in his day to day life. If the person entertains himself by watching tv, listening radio, working on his hobby or playing his favourite sport, then he is less likely to have a thought of committing suicide. friends play a great role on how a person deals with suicidal thoughts. Persons with same interests are more likely to be friends.
Refer to question code H1DA2, H1DA3,H1DA4,H1DA5,H1DA6,H1DA7 and H1SU1,H1SU2 .  The frequency of persons opting for  0,0 in HADA2, H1DA3 respectively, is more likely to not opt 0,0 in H1SU1,H1SU2 respectively. Also if someone opted for 0 in H1DA7 is more likely to  have suicidal thoughts and not opt 0 for H1SU1,H1SU2.
Hence it is to be concluded that a person’s daily activities a associated with whether he has suicidal thoughts. A person that practices its hobbies, entertains himself, hangs out with friends is quite unlikely to have suicidal thougts and is seen to be happier than is fellow mates.
                                                                                        -Kriti Singh
1 note · View note