Coursera - Data Management and Visualization
Data Mgmt and Visualization - Week 2 Assignment
In this assignment I have shown frequency distribution of the variables showing relations with parents, particularly activities with father. To refine the data we need only the information of adolescence who seriously think about suicide and who attempted for it. I have used logical statement used for sub-setting.
The screenshots of code and output have given below.
A random sample of 6,504 adolescents were asked the following question, “Have you gone shopping with your father in last 4 weeks?” Of the total number, about 30.01% chose category 7 which was a legitimate skip [has not had intercourse], and about 51.41% fell into category 0 (no).
For the next question, the same students were asked “Have you played a sport with your father in last 4 weeks?" About 48.74% answered no and the same percentage 30.01%, as for first question skipped the question.
For the next question, "Have you gone to a religious service or church-related event in the last 4 week?” same percentage of students- 30.01% skipped the question, and about 47.49% fell into category 0.


No comments:
Post a Comment