-
Notifications
You must be signed in to change notification settings - Fork 0
/
Suicide Rates.Rmd
875 lines (618 loc) · 37.9 KB
/
Suicide Rates.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
---
title: "Investigating Suicide Rate"
author: "By Anosh.S, Stuart.T, Matteus.R and Kshitij.M"
subtitle: ""
date: "University of Sydney | DATA1001 | MARCH"
output:
html_document:
fig_caption: yes
number_sections: yes
self_contained: yes
theme: cosmo
toc: true
toc_depth: 3
toc_float: true
code_folding: hide
---
<br>
# Executive Summary
Suicide is a growing problem in many places around the globe in the 21st century. This report aims to determine whether there is a correlation between socio-economic and health factors and suicide rate through the comparison of gross domestic product, age, sex, and unemployment rate. Through the comparison of these variables, the report will explore the trends in the data to understand why the trends found exist and what is potentially driving the changes.
Income vs Suicide Rate: A trend appeared in all 4 time periods spanning 2005-2015, there is a moderate inversely proportional relationship between suicide rate and income, especially at the upper extremities, where high suicide rates/incomes are exhibited in countries of low incomes/suicide rates, respectively.
Age & sex vs suicide rate: The last 15 years have shown a gradual decline in average suicide rate globally. This is because the 21st century society has become more aware of the causes of suicide and societal expectations have changed.
Unemployment vs Suicide Rate: Unemployment has shown to be a causal factor of suicide as it causes a loss of social status and structure, financial strain, and has a significant social stigma attached to it.
<br>
# Full Report
## Initial Data Analysis (IDA)
Suicide claims over 800,000 lives worldwide annually, contributing to 1.4% of deaths globally in 2016. It is a complex phenomenon, and understanding contributing factors to suicide are important in improving prevention. By comparing suicide rates across 135 countries with sex, income, and unemployment, we hope to see trends in the data which allow for an effective delineation of some of the causes of suicide.
To compare incomes internationally, GDP (Gross domestic product) per capita is not an accurate measure, since the spending power of that income is not equal. Thus, GDP at PPP (purchasing power of parity) provides a normalised value for income, removing spending power of income as a confounding factor. Unemployment rate is an ideal statistic to use, as it represents the percentage of people willing and able to, but unable to find work, which can be linked to loss of status, social stigma and other factors increasing suicide risk.
To source our variables, multiple datasets were used sources. A World Health Organisation data set (dataset 1), containing country (factor), year (integer), sex (factor), age range (factor), suicide number (integer), and suicide rate (number) was used to compare global suicide rate with sex and age.
However, a second dataset (dataset 2) was used for the first and second research questions. After cleaning and shortening the time span of the investigation (to reflect the time period of recorded data), dataset 2 contained seven variables: country (factor), year (integer), sex (factor), suicide rate (number), unemployment rate (number), PPP (number), and continent/region (factor). Utilising two datasets ensured that the data was valid as the values were compared to ensure consistency.
The validity of the source was also checked for reputability. Dataset 1 was sourced from the World Health Organisation (WHO), an autonomous organisation working with the United Nations focusing on international world health.The WHO's autonomy, UN association and healthcare specialty mean the health data used is very unlikely to be false/biased. Economic data for dataset 2 was sourced from the World Bank, a financial institution with 189 member countries, aiming to reduce poverty. World Bank's economic specialty and international recognition/participation means there is little cause for manipulating economic data, making it also reliable.
<br>Stakeholders with an interest in this report include:</br>
<br>- The health sector globally has to have the resources available to support and reduce current suicide rates. Analysing the past and present data allows governments and those who fund the health sector to make decisions on how resources and money should be allocated to effectively address the issue of suicide.</br>
<br>- The education sector plays a significant role in the reduction of suicide rates through the education of the population on the factors that contribute to suicide.</br>
<br>- Governments have an obligation to efficiently and effectively address the needs of their people. Analysing trends of suicide rates allows governments to make the necessary changes to budgets to ensure that the issue they face as a nation is addressed and minimised.</br>
```{r, echo = TRUE}
library(plotly)
# LOAD DATA v1 - uncomment the link below to: load data direct from html
setwd("C:/Users/anosh/Documents/Anosh's Data/!_Uni_!/Sem 1/DATA1001 - Intro to Data/Assignment 1")
su_rate1 = read.csv("Data/who_suicide_statistics_NOBLANKS.csv")
su_rate2 = read.csv("Data/Tidy Data Set - Suicide Rates (REVISED).csv")
# LOAD DATA v2 - uncomment the link below to: load data from local file
#cars = read.csv("dataset file location")
# Quick look at top 5 rows of data
head(su_rate1)
head(su_rate2)
## Size of data
dim(su_rate1)
dim(su_rate2)
## R's classification of data
class(su_rate1)
class(su_rate2)
## R's classification of variables
str(su_rate1)
str(su_rate2)
```
## Investigating the Relationship Between Income ($ PPP) and Suicde Rates
Suicide is a well documented but poorly understood human behaviour which may stem from a number of causes. According to the WHO (2018), low and middle income represent 79% of completed suicide. Thus, it is possible lower income countries could could display a higher rate of completing suicide. Conversely, it may be higher income countries who are at greater risk of completing suicide, since increased levels of income past a certain point may result in lower life satisfaction (Jebb, Tay, Diener, & Oishi, 2018) and the loss of pleasure in life is a psychosocial state which increases risk of completing suicide (Cucher, & Chehill, 2012).
So the question is: What is the correlation between income and suicide rates in countries across the world?
In the four scatter plots produced showing Income (GDP at PPP) vs. Suicide Rate (per 100,000) for the years 2000, 2005, 2010 and 2015, a non-linear trend emerged showing an inversely proportional relationship between income and suicide rate. This trend was increasingly obvious at the extremes, with the highest income countries displaying low suicide rates and the highest suicide rate countries typically being low income. However, this rule was not applicable in reverse (low suicide rates could occur in countries of low or high income and low income countries could have low or high suicide rates). Interestingly, between 2005 and 2015, the above trend has become less clear, with the 2015 high incomes and suicide rates being a worse predictor of low suicide rates and incomes, respectively.
```{r, message = FALSE}
GDP2000 <- filter(su_rate2, su_rate2$Year == "2000" & su_rate2$GDP.Per.Capita....PPP. > 0)
x <- list(
title = "Income ($ PPP)"
)
y <- list(
title = "Suicide Rate (per 100,000)"
)
p1 <- plot_ly(GDP2000, x = ~GDP.Per.Capita....PPP., y = ~Suicide.Rate, color = ~Region, type = "scatter",
text = ~paste("Region: ",Region, '<br>Country:', Country,'<br>Suicide Rate:', Suicide.Rate, '<br>Income ($ PPP):', GDP.Per.Capita....PPP., '<br>Gender:', Gender)) %>%
layout(
title = "Suicide Rate vs. Income($ PPP) Across Different Countries and Regions (2000)"
, xaxis = x, yaxis = y)
p1
```
```{r, message = FALSE}
library(plotly)
GDP2005 <- filter(su_rate2, su_rate2$Year == "2005" & su_rate2$GDP.Per.Capita....PPP. > 0)
x <- list(
title = "Income ($ PPP)"
)
y <- list(
title = "Suicide Rate (per 100,000)"
)
p1 <- plot_ly(GDP2005, x = ~GDP.Per.Capita....PPP., y = ~Suicide.Rate, color = ~Region, type = "scatter",
text = ~paste("Region: ",Region, '<br>Country:', Country, '<br>Suicide Rate:', Suicide.Rate, '<br>Income ($ PPP):', GDP.Per.Capita....PPP., '<br>Gender:', Gender)) %>%
layout(
title = "Suicide Rate vs. Income($ PPP) Across Different Countries and Regions (2005)"
, xaxis = x, yaxis = y)
p1
```
```{r, message = FALSE}
library(plotly)
GDP2010 <- filter(su_rate2, su_rate2$Year == "2010" & su_rate2$GDP.Per.Capita....PPP. > 0)
x <- list(
title = "Income ($ PPP)"
)
y <- list(
title = "Suicide Rate (per 100,000)"
)
p1 <- plot_ly(GDP2010, x = ~GDP.Per.Capita....PPP., y = ~Suicide.Rate, color = ~Region, type = "scatter",
text = ~paste("Region: ",Region, '<br>Country:', Country, '<br>Suicide Rate:', Suicide.Rate, '<br>Income ($ PPP):', GDP.Per.Capita....PPP., '<br>Gender:', Gender)) %>%
layout(
title = "Suicide Rate vs. Income($ PPP) Across Different Countries and Regions (2010)"
, xaxis = x, yaxis = y)
p1
```
```{r, message = FALSE}
library(plotly)
GDP2015 <- filter(su_rate2, su_rate2$Year == "2015" & su_rate2$GDP.Per.Capita....PPP. > 0)
x <- list(
title = "Income ($ PPP)"
)
y <- list(
title = "Suicide Rate (per 100,000)"
)
p1 <- plot_ly(GDP2015, x = ~GDP.Per.Capita....PPP., y = ~Suicide.Rate, color = ~Region, type = "scatter",
text = ~paste("Region: ",Region, '<br>Country:', Country, '<br>Suicide Rate:', Suicide.Rate, '<br>Income ($ PPP):', GDP.Per.Capita....PPP., '<br>Gender:', Gender)) %>%
layout(
title = "Suicide Rate vs. Income($ PPP) Across Different Countries and Regions (2015)"
, xaxis = x, yaxis = y)
p1
```
## Investigating the Relationship Between Unemployment and Suicide Rate
Suicide is a global epidemic that is one of the largest contributors of premature mortality and is attributed to revealing a causal link between suicide and unemployment as the impact of being unemployed is not simply the economic pressure of a reduced income but also, the loss of status and structure which work provides. Furthermore, the social stigma attached to the loss of status adds greater pressure on unemployed individuals [Imogen Tyler]. The causational relationship between unemployment and suicide can be seen throughout history with Australian male suicide rates peaking during the 1930's Great Depression [Social Science & Medicine, Volume 36 Issue 6 Pages 715-841 (March 1993)].
Larger inquiries into the relationship between unemployment and suicide have also found a causal link with 45,000 (???) suicides a year being attributed to unemployment [by Carlos Nordt and colleagues at the University of Zurich]. Through our research into the relationship between these 2 phenomenons, we have also come to the conclusion that unemployment and suicide share a link of causation. This is clearly seen through a direct comparison of the 4 separate graphs of the relationship between suicide and unemployment revealing that the general distribution of the data remains the same across different time periods. Furthermore, the comparison of the 2000 visualisation and the 2015 visualisation represents that regions experienced 20-30% rises in unemployment rates whilst also simultaneously recording an increase of approximately 12% in suicide rates during the same period [also found by Dr Carlos Nordt in Lancet Psychiatry Volume 2, Issue 3, P239-245, March 01, 2015] reiterating the consistent nature of the causal link between unemployment and suicide.
Thus, it is clear that unemployment and suicide share a causational link which is consistent for the majority of countries and regions around the globe, with inconsistencies only arising due to differences in social security policies of specific countries.
```{r, message=FALSE}
library(plotly)
UR2000 <- filter(su_rate2, su_rate2$Year == "2000" & su_rate2$Unemployment.Rate > 0)
##
x <- list(
title = "Unemployment Rate (%)"
)
y <- list(
title = "Suicide Rate (per 100,000)"
)
p1 <- plot_ly(UR2000, x = ~Unemployment.Rate, y = ~Suicide.Rate, color = ~Region, type = "scatter",
text = ~paste("Region: ",Region, '<br>Country:', Country, '<br>Suicide Rate:', Suicide.Rate, '<br>Unemployment Rate (%):', Unemployment.Rate, '<br>Gender:', Gender)) %>%
layout(
title = "Suicide Rate vs. Unemployment Rate (%) Across Different Countries and Regions (2000)"
, xaxis = x, yaxis = y)
p1
```
```{r, message=FALSE}
library(plotly)
UR2005 <- filter(su_rate2, su_rate2$Year == "2005" & su_rate2$Unemployment.Rate > 0)
x <- list(
title = "Unemployment Rate (%)"
)
y <- list(
title = "Suicide Rate (per 100,000)"
)
p1 <- plot_ly(UR2005, x = ~Unemployment.Rate, y = ~Suicide.Rate, color = ~Region, type = "scatter",
text = ~paste("Region: ",Region, '<br>Country:', Country, '<br>Suicide Rate:', Suicide.Rate, '<br>Unemployment Rate (%):', Unemployment.Rate, '<br>Gender:', Gender)) %>%
layout(
title = "Suicide Rate vs. Unemployment Rate (%) Across Different Countries and Regions (2005)"
, xaxis = x, yaxis = y)
p1
```
```{r, message=FALSE}
library(plotly)
UR2010 <- filter(su_rate2, su_rate2$Year == "2010" & su_rate2$Unemployment.Rate > 0)
x <- list(
title = "Unemployment Rate (%)"
)
y <- list(
title = "Suicide Rate (per 100,000)"
)
p1 <- plot_ly(UR2010, x = ~Unemployment.Rate, y = ~Suicide.Rate, color = ~Region, type = "scatter",
text = ~paste("Region: ",Region, '<br>Country:', Country, '<br>Suicide Rate:', Suicide.Rate, '<br>Unemployment Rate (%):', Unemployment.Rate, '<br>Gender:', Gender)) %>%
layout(
title = "Suicide Rate vs. Unemployment Rate (%) Across Different Countries and Regions (2010)"
, xaxis = x, yaxis = y)
p1
```
```{r, message=FALSE}
library(plotly)
UR2015 <- filter(su_rate2, su_rate2$Year == "2015" & su_rate2$Unemployment.Rate > 0)
x <- list(
title = "Unemployment Rate (%)"
)
y <- list(
title = "Suicide Rate (per 100,000)"
)
p1 <- plot_ly(UR2015, x = ~Unemployment.Rate, y = ~Suicide.Rate, color = ~Region, type = "scatter",
text = ~paste("Region: ",Region, '<br>Country:', Country, '<br>Suicide Rate:', Suicide.Rate, '<br>Unemployment Rate (%):', Unemployment.Rate, '<br>Gender:', Gender)) %>%
layout(
title = "Suicide Rate vs. Unemployment Rate (%) Across Different Countries and Regions (2015)"
, xaxis = x, yaxis = y)
p1
```
## Investigating the Relationship between Age and Sex with respect to Suicide Rates
When determining which countries to investigate further in this project, countries that had unique, dramatic or otherwise interesting trends in their data, were the main focus. Taking this into consideration, the US appeared distinct.
The US consistently showed increasing trends across the fifteen year period. Investigating this further, it was found that suicide was the tenth leading cause of death in the US in 2016 (AFSP, 2016). Comparing the 2015 US Average Suicide Rate graph in our data, to the 2015 World Average Suicide Rate graph, the US average suicide rate for men was at 23.36 while the World average was at 16.63, presenting a higher than average suicide rate among American men. Furthermore, more than fifty percent of those who committed suicide had no known diagnosed mental health conditions at the time of death, with relationship issues, substance abuse, physical health issues, and monetary issues contributing more significantly (CDC, 2018).
A second phenomenon that trends in the data reflected was the difference between the suicide rate among men and women. In the US in 2015, suicide was the seventh leading cause of death for men and the fourteenth for women (CDC, 2015). Women attempted suicide 1.2 times more often than men (CDC, 2016), however, as according to our data of the 2015 world average, the average suicide rate for women was just 4.5, while, as stated before, the world average suicide rate for men was 16.6. This means that, worldwide, the suicide rate for men is 3.7 times higher than the women's rate. This trend of the men's suicide rate being significantly higher translated across the vast majority of suicide rates in countries across our data. In our research, we found that the driving forces behind these statistics are the fact the men seek medical and professional help less often than women do and that there is a high rate of untreated depressive disorders among men (Wittchen et al., 1999). Furthermore, symptoms of depression often deviate from traditionally masculine stereotypes. This link between symptoms of depression and femininity often motivates men to hide their depression from those around them (Warren 1983).
```{r}
library(plotly)
a <-filter(su_rate1, su_rate1$year == "2000" & su_rate1$sex == "male" & su_rate1$age =="5-14 years")
a1 <- mean(a$rate)
a2 <-filter(su_rate1, su_rate1$year == "2000" & su_rate1$sex == "female" & su_rate1$age =="5-14 years")
a3 <- mean(a2$rate)
b <-filter(su_rate1, su_rate1$year == "2000" & su_rate1$sex == "male" & su_rate1$age =="15-24 years")
b1 <- mean(b$rate)
b2 <-filter(su_rate1, su_rate1$year == "2000" & su_rate1$sex == "female" & su_rate1$age =="15-24 years")
b3 <- mean(b2$rate)
c <-filter(su_rate1, su_rate1$year == "2000" & su_rate1$sex == "male" & su_rate1$age =="25-34 years")
c1 <- mean(c$rate)
c2 <-filter(su_rate1, su_rate1$year == "2000" & su_rate1$sex == "female" & su_rate1$age =="25-34 years")
c3 <- mean(c2$rate)
d <-filter(su_rate1, su_rate1$year == "2000" & su_rate1$sex == "male" & su_rate1$age =="35-54 years")
d1 <- mean(d$rate)
d2 <-filter(su_rate1, su_rate1$year == "2000" & su_rate1$sex == "female" & su_rate1$age =="35-54 years")
d3 <- mean(d2$rate)
e <-filter(su_rate1, su_rate1$year == "2000" & su_rate1$sex == "male" & su_rate1$age =="55-74 years")
e1 <- mean(e$rate)
e2 <-filter(su_rate1, su_rate1$year == "2000" & su_rate1$sex == "female" & su_rate1$age =="55-74 years")
e3 <- mean(e2$rate)
f <-filter(su_rate1, su_rate1$year == "2000" & su_rate1$sex == "male" & su_rate1$age =="75+ years")
f1 <- mean(f$rate)
f2 <-filter(su_rate1, su_rate1$year == "2000" & su_rate1$sex == "female" & su_rate1$age =="75+ years")
f3 <- mean(f2$rate)
table <- data.frame(x = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"),
y = c(a1, b1, c1, d1, e1, f1))
table$x <- factor(table$x, levels = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"))
p1 <- plot_ly(
data = table,
x = ~x,
y = ~y,
type = "bar",
name = "Male",
color = I("dodgerblue4")
) %>%
add_trace(
y = c(a3, b3, c3, d3, e3, f3),
name = "Female",
color = I("firebrick4")
) %>%
layout(
title = "World Average Suicide Rate Across Different Age Categories (2000)",
yaxis = list(
title = "Suicide Rate (per 100,000)"),
xaxis = list(
title = "Age"),
barmode = "group"
)
p1
```
```{r}
library(plotly)
a <-filter(su_rate1, su_rate1$year == "2005" & su_rate1$sex == "male" & su_rate1$age =="5-14 years")
a1 <- mean(a$rate)
a2 <-filter(su_rate1, su_rate1$year == "2005" & su_rate1$sex == "female" & su_rate1$age =="5-14 years")
a3 <- mean(a2$rate)
b <-filter(su_rate1, su_rate1$year == "2005" & su_rate1$sex == "male" & su_rate1$age =="15-24 years")
b1 <- mean(b$rate)
b2 <-filter(su_rate1, su_rate1$year == "2005" & su_rate1$sex == "female" & su_rate1$age =="15-24 years")
b3 <- mean(b2$rate)
c <-filter(su_rate1, su_rate1$year == "2005" & su_rate1$sex == "male" & su_rate1$age =="25-34 years")
c1 <- mean(c$rate)
c2 <-filter(su_rate1, su_rate1$year == "2005" & su_rate1$sex == "female" & su_rate1$age =="25-34 years")
c3 <- mean(c2$rate)
d <-filter(su_rate1, su_rate1$year == "2005" & su_rate1$sex == "male" & su_rate1$age =="35-54 years")
d1 <- mean(d$rate)
d2 <-filter(su_rate1, su_rate1$year == "2005" & su_rate1$sex == "female" & su_rate1$age =="35-54 years")
d3 <- mean(d2$rate)
e <-filter(su_rate1, su_rate1$year == "2005" & su_rate1$sex == "male" & su_rate1$age =="55-74 years")
e1 <- mean(e$rate)
e2 <-filter(su_rate1, su_rate1$year == "2005" & su_rate1$sex == "female" & su_rate1$age =="55-74 years")
e3 <- mean(e2$rate)
f <-filter(su_rate1, su_rate1$year == "2005" & su_rate1$sex == "male" & su_rate1$age =="75+ years")
f1 <- mean(f$rate)
f2 <-filter(su_rate1, su_rate1$year == "2005" & su_rate1$sex == "female" & su_rate1$age =="75+ years")
f3 <- mean(f2$rate)
table <- data.frame(x = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"),
y = c(a1, b1, c1, d1, e1, f1))
table$x <- factor(table$x, levels = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"))
p1 <- plot_ly(
data = table,
x = ~x,
y = ~y,
type = "bar",
name = "Male",
color = I("dodgerblue4")
) %>%
add_trace(
y = c(a3, b3, c3, d3, e3, f3),
name = "Female",
color = I("firebrick4")
) %>%
layout(
title = "World Average Suicide Rate Across Different Age Categories (2005)",
yaxis = list(
title = "Suicide Rate (per 100,000)"),
xaxis = list(
title = "Age"),
barmode = "group"
)
p1
```
```{r}
library(plotly)
a <-filter(su_rate1, su_rate1$year == "2010" & su_rate1$sex == "male" & su_rate1$age =="5-14 years")
a1 <- mean(a$rate)
a2 <-filter(su_rate1, su_rate1$year == "2010" & su_rate1$sex == "female" & su_rate1$age =="5-14 years")
a3 <- mean(a2$rate)
b <-filter(su_rate1, su_rate1$year == "2010" & su_rate1$sex == "male" & su_rate1$age =="15-24 years")
b1 <- mean(b$rate)
b2 <-filter(su_rate1, su_rate1$year == "2010" & su_rate1$sex == "female" & su_rate1$age =="15-24 years")
b3 <- mean(b2$rate)
c <-filter(su_rate1, su_rate1$year == "2010" & su_rate1$sex == "male" & su_rate1$age =="25-34 years")
c1 <- mean(c$rate)
c2 <-filter(su_rate1, su_rate1$year == "2010" & su_rate1$sex == "female" & su_rate1$age =="25-34 years")
c3 <- mean(c2$rate)
d <-filter(su_rate1, su_rate1$year == "2010" & su_rate1$sex == "male" & su_rate1$age =="35-54 years")
d1 <- mean(d$rate)
d2 <-filter(su_rate1, su_rate1$year == "2010" & su_rate1$sex == "female" & su_rate1$age =="35-54 years")
d3 <- mean(d2$rate)
e <-filter(su_rate1, su_rate1$year == "2010" & su_rate1$sex == "male" & su_rate1$age =="55-74 years")
e1 <- mean(e$rate)
e2 <-filter(su_rate1, su_rate1$year == "2010" & su_rate1$sex == "female" & su_rate1$age =="55-74 years")
e3 <- mean(e2$rate)
f <-filter(su_rate1, su_rate1$year == "2010" & su_rate1$sex == "male" & su_rate1$age =="75+ years")
f1 <- mean(f$rate)
f2 <-filter(su_rate1, su_rate1$year == "2010" & su_rate1$sex == "female" & su_rate1$age =="75+ years")
f3 <- mean(f2$rate)
table <- data.frame(x = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"),
y = c(a1, b1, c1, d1, e1, f1))
table$x <- factor(table$x, levels = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"))
p1 <- plot_ly(
data = table,
x = ~x,
y = ~y,
type = "bar",
name = "Male",
color = I("dodgerblue4")
) %>%
add_trace(
y = c(a3, b3, c3, d3, e3, f3),
name = "Female",
color = I("firebrick4")
) %>%
layout(
title = "World Average Suicide Rate Across Different Age Categories (2010)",
yaxis = list(
title = "Suicide Rate (per 100,000)"),
xaxis = list(
title = "Age"),
barmode = "group"
)
p1
```
```{r}
library(plotly)
a <-filter(su_rate1, su_rate1$year == "2015" & su_rate1$sex == "male" & su_rate1$age =="5-14 years")
a1 <- mean(a$rate)
a2 <-filter(su_rate1, su_rate1$year == "2015" & su_rate1$sex == "female" & su_rate1$age =="5-14 years")
a3 <- mean(a2$rate)
b <-filter(su_rate1, su_rate1$year == "2015" & su_rate1$sex == "male" & su_rate1$age =="15-24 years")
b1 <- mean(b$rate)
b2 <-filter(su_rate1, su_rate1$year == "2015" & su_rate1$sex == "female" & su_rate1$age =="15-24 years")
b3 <- mean(b2$rate)
c <-filter(su_rate1, su_rate1$year == "2015" & su_rate1$sex == "male" & su_rate1$age =="25-34 years")
c1 <- mean(c$rate)
c2 <-filter(su_rate1, su_rate1$year == "2015" & su_rate1$sex == "female" & su_rate1$age =="25-34 years")
c3 <- mean(c2$rate)
d <-filter(su_rate1, su_rate1$year == "2015" & su_rate1$sex == "male" & su_rate1$age =="35-54 years")
d1 <- mean(d$rate)
d2 <-filter(su_rate1, su_rate1$year == "2015" & su_rate1$sex == "female" & su_rate1$age =="35-54 years")
d3 <- mean(d2$rate)
e <-filter(su_rate1, su_rate1$year == "2015" & su_rate1$sex == "male" & su_rate1$age =="55-74 years")
e1 <- mean(e$rate)
e2 <-filter(su_rate1, su_rate1$year == "2015" & su_rate1$sex == "female" & su_rate1$age =="55-74 years")
e3 <- mean(e2$rate)
f <-filter(su_rate1, su_rate1$year == "2015" & su_rate1$sex == "male" & su_rate1$age =="75+ years")
f1 <- mean(f$rate)
f2 <-filter(su_rate1, su_rate1$year == "2015" & su_rate1$sex == "female" & su_rate1$age =="75+ years")
f3 <- mean(f2$rate)
table <- data.frame(x = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"),
y = c(a1, b1, c1, d1, e1, f1))
table$x <- factor(table$x, levels = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"))
p1 <- plot_ly(
data = table,
x = ~x,
y = ~y,
type = "bar",
name = "Male",
color = I("dodgerblue4")
) %>%
add_trace(
y = c(a3, b3, c3, d3, e3, f3),
name = "Female",
color = I("firebrick4")
) %>%
layout(
title = "World Average Suicide Rate Across Different Age Categories (2015)",
yaxis = list(
title = "Suicide Rate (per 100,000)"),
xaxis = list(
title = "Age"),
barmode = "group"
)
p1
```
```{r}
library(plotly)
a <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2000" & su_rate1$sex == "male" & su_rate1$age =="5-14 years")
a1 <- mean(a$rate)
a2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2000" & su_rate1$sex == "female" & su_rate1$age =="5-14 years")
a3 <- mean(a2$rate)
b <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2000" & su_rate1$sex == "male" & su_rate1$age =="15-24 years")
b1 <- mean(b$rate)
b2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2000" & su_rate1$sex == "female" & su_rate1$age =="15-24 years")
b3 <- mean(b2$rate)
c <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2000" & su_rate1$sex == "male" & su_rate1$age =="25-34 years")
c1 <- mean(c$rate)
c2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2000" & su_rate1$sex == "female" & su_rate1$age =="25-34 years")
c3 <- mean(c2$rate)
d <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2000" & su_rate1$sex == "male" & su_rate1$age =="35-54 years")
d1 <- mean(d$rate)
d2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2000" & su_rate1$sex == "female" & su_rate1$age =="35-54 years")
d3 <- mean(d2$rate)
e <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2000" & su_rate1$sex == "male" & su_rate1$age =="55-74 years")
e1 <- mean(e$rate)
e2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2000" & su_rate1$sex == "female" & su_rate1$age =="55-74 years")
e3 <- mean(e2$rate)
f <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2000" & su_rate1$sex == "male" & su_rate1$age =="75+ years")
f1 <- mean(f$rate)
f2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2000" & su_rate1$sex == "female" & su_rate1$age =="75+ years")
f3 <- mean(f2$rate)
table <- data.frame(x = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"),
y = c(a1, b1, c1, d1, e1, f1))
table$x <- factor(table$x, levels = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"))
p1 <- plot_ly(
data = table,
x = ~x,
y = ~y,
type = "bar",
name = "Male",
color = I("dodgerblue4")
) %>%
add_trace(
y = c(a3, b3, c3, d3, e3, f3),
name = "Female",
color = I("firebrick4")
) %>%
layout(
title = "US Average Suicide Rate Across Different Age Categories (2000)",
yaxis = list(
title = "Suicide Rate (per 100,000)"),
xaxis = list(
title = "Age"),
barmode = "group"
)
p1
```
```{r}
library(plotly)
a <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2005" & su_rate1$sex == "male" & su_rate1$age =="5-14 years")
a1 <- mean(a$rate)
a2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2005" & su_rate1$sex == "female" & su_rate1$age =="5-14 years")
a3 <- mean(a2$rate)
b <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2005" & su_rate1$sex == "male" & su_rate1$age =="15-24 years")
b1 <- mean(b$rate)
b2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2005" & su_rate1$sex == "female" & su_rate1$age =="15-24 years")
b3 <- mean(b2$rate)
c <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2005" & su_rate1$sex == "male" & su_rate1$age =="25-34 years")
c1 <- mean(c$rate)
c2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2005" & su_rate1$sex == "female" & su_rate1$age =="25-34 years")
c3 <- mean(c2$rate)
d <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2005" & su_rate1$sex == "male" & su_rate1$age =="35-54 years")
d1 <- mean(d$rate)
d2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2005" & su_rate1$sex == "female" & su_rate1$age =="35-54 years")
d3 <- mean(d2$rate)
e <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2005" & su_rate1$sex == "male" & su_rate1$age =="55-74 years")
e1 <- mean(e$rate)
e2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2005" & su_rate1$sex == "female" & su_rate1$age =="55-74 years")
e3 <- mean(e2$rate)
f <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2005" & su_rate1$sex == "male" & su_rate1$age =="75+ years")
f1 <- mean(f$rate)
f2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2005" & su_rate1$sex == "female" & su_rate1$age =="75+ years")
f3 <- mean(f2$rate)
table <- data.frame(x = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"),
y = c(a1, b1, c1, d1, e1, f1))
table$x <- factor(table$x, levels = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"))
p1 <- plot_ly(
data = table,
x = ~x,
y = ~y,
type = "bar",
name = "Male",
color = I("dodgerblue4")
) %>%
add_trace(
y = c(a3, b3, c3, d3, e3, f3),
name = "Female",
color = I("firebrick4")
) %>%
layout(
title = "US Average Suicide Rate Across Different Age Categories (2005)",
yaxis = list(
title = "Suicide Rate (per 100,000)"),
xaxis = list(
title = "Age"),
barmode = "group"
)
p1
```
```{r}
library(plotly)
a <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2010" & su_rate1$sex == "male" & su_rate1$age =="5-14 years")
a1 <- mean(a$rate)
a2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2010" & su_rate1$sex == "female" & su_rate1$age =="5-14 years")
a3 <- mean(a2$rate)
b <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2010" & su_rate1$sex == "male" & su_rate1$age =="15-24 years")
b1 <- mean(b$rate)
b2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2010" & su_rate1$sex == "female" & su_rate1$age =="15-24 years")
b3 <- mean(b2$rate)
c <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2010" & su_rate1$sex == "male" & su_rate1$age =="25-34 years")
c1 <- mean(c$rate)
c2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2010" & su_rate1$sex == "female" & su_rate1$age =="25-34 years")
c3 <- mean(c2$rate)
d <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2010" & su_rate1$sex == "male" & su_rate1$age =="35-54 years")
d1 <- mean(d$rate)
d2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2010" & su_rate1$sex == "female" & su_rate1$age =="35-54 years")
d3 <- mean(d2$rate)
e <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2010" & su_rate1$sex == "male" & su_rate1$age =="55-74 years")
e1 <- mean(e$rate)
e2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2010" & su_rate1$sex == "female" & su_rate1$age =="55-74 years")
e3 <- mean(e2$rate)
f <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2010" & su_rate1$sex == "male" & su_rate1$age =="75+ years")
f1 <- mean(f$rate)
f2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2010" & su_rate1$sex == "female" & su_rate1$age =="75+ years")
f3 <- mean(f2$rate)
table <- data.frame(x = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"),
y = c(a1, b1, c1, d1, e1, f1))
table$x <- factor(table$x, levels = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"))
p1 <- plot_ly(
data = table,
x = ~x,
y = ~y,
type = "bar",
name = "Male",
color = I("dodgerblue4")
) %>%
add_trace(
y = c(a3, b3, c3, d3, e3, f3),
name = "Female",
color = I("firebrick4")
) %>%
layout(
title = "US Average Suicide Rate Across Different Age Categories (2010)",
yaxis = list(
title = "Suicide Rate (per 100,000)"),
xaxis = list(
title = "Age"),
barmode = "group"
)
p1
```
```{r}
library(plotly)
a <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2015" & su_rate1$sex == "male" & su_rate1$age =="5-14 years")
a1 <- mean(a$rate)
a2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2015" & su_rate1$sex == "female" & su_rate1$age =="5-14 years")
a3 <- mean(a2$rate)
b <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2015" & su_rate1$sex == "male" & su_rate1$age =="15-24 years")
b1 <- mean(b$rate)
b2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2015" & su_rate1$sex == "female" & su_rate1$age =="15-24 years")
b3 <- mean(b2$rate)
c <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2015" & su_rate1$sex == "male" & su_rate1$age =="25-34 years")
c1 <- mean(c$rate)
c2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2015" & su_rate1$sex == "female" & su_rate1$age =="25-34 years")
c3 <- mean(c2$rate)
d <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2015" & su_rate1$sex == "male" & su_rate1$age =="35-54 years")
d1 <- mean(d$rate)
d2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2015" & su_rate1$sex == "female" & su_rate1$age =="35-54 years")
d3 <- mean(d2$rate)
e <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2015" & su_rate1$sex == "male" & su_rate1$age =="55-74 years")
e1 <- mean(e$rate)
e2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2015" & su_rate1$sex == "female" & su_rate1$age =="55-74 years")
e3 <- mean(e2$rate)
f <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2015" & su_rate1$sex == "male" & su_rate1$age =="75+ years")
f1 <- mean(f$rate)
f2 <-filter(su_rate1, su_rate1$country == "United States of America" & su_rate1$year == "2015" & su_rate1$sex == "female" & su_rate1$age =="75+ years")
f3 <- mean(f2$rate)
table <- data.frame(x = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"),
y = c(a1, b1, c1, d1, e1, f1))
table$x <- factor(table$x, levels = c("5-14 years", "15-24 years", "25-34 years", "35-54 years", "55-74 years", "75+ years"))
p1 <- plot_ly(
data = table,
x = ~x,
y = ~y,
type = "bar",
name = "Male",
color = I("dodgerblue4")
) %>%
add_trace(
y = c(a3, b3, c3, d3, e3, f3),
name = "Female",
color = I("firebrick4")
) %>%
layout(
title = "US Average Suicide Rate Across Different Age Categories (2015)",
yaxis = list(
title = "Suicide Rate (per 100,000)"),
xaxis = list(
title = "Age"),
barmode = "group"
)
p1
```
<br>
# Conclusions
Therefore, our research was indicative of a modest inversely proportional relationship between income (GDP at PPP) and suicide rate. However, the vast disparity between male suicide rate (higher) vs global female suicide rate (lower) and a positive linear relationship between age and suicide rate reaffirmed its psychosocial impact on suicidal tendencies, whilst unemployment presented a casual relationship.
<br>
# References
Style: APA - referenced throughout.
<br>