You are on page 1of 35

UNIVERSITI TEKNOLOGI

PETRONAS
COURSE:
INFORMATION COMMUNICATION & TECHNOLOGY (ICT)

TDB3063:
DISTRIBUTED COMPUTING

Assignment Topics:
Suicide Rate in Germany
STUDENT’S DETAILS
NO. NAME ID COURSE
1. MUHAMMAD FARHAN ASYRAF ICT
2. NUR FATIN FIRZANAH ICT
ASSIGNMENT DETAIL
DISTRBUTED COMPUTING

1
TABLE OF CONTENT

CONTENT PAGE

1.0 Background 3

2.0 Program 4 – 18

3.0 Result 19 -25

4.0 Appendix 26 - 34

5.0 Reference 35

2
Assignment Topics:
Suicide Rate in Germany

1.0 BACKGROUND

RStudio is an open-source integrated development environment


(IDE) for R. R is a programming language designed for statistical computing and
graphics. Hence, R language is widely used among statisticians and data miners
for developing statistical software and data analysis. Hence, this automation of
analyses will save our time and energy, and lead to proper documentation in
which RStudio help in conducting precise analyses and correcting mistakes.

Hence, the purpose of this project is to find the statistic and analysis
regarding the “Suicide Rate in Germany”. Based on the data, we can analysis
hundreds of data easily. Thus, for our project, R is really beneficial to us as it
helping us in manipulating, analysing, and visualizing hundreds of data.

Based on the data, there are four main dataset that can be simplified
which are the gender (sex), method of suicide, frequency and also age. Hence,
by using RStudio, we can simplified hundreds of data and come out with
summary of dataset – can refer to the “Program & Result” page.

3
2.0 PROGRAM

> setwd("C:/Users/asus pc/Desktop/DC")


> library(readr)
> Suicide <- read_csv("Suicide.csv")
Parsed with column specification:
cols(
Freq = col_integer(),
sex = col_character(),
method = col_character(),
age = col_integer()
)
> View(Suicide)
> install.packages("caret")
Installing package into ëC:/Users/asus pc/Documents/R/win-library/3.5í
(as ëlibí is unspecified)
trying URL
'https://cran.rstudio.com/bin/windows/contrib/3.5/caret_6.0-80.zip'
Content type 'application/zip' length 6114409 bytes (5.8 MB)
downloaded 5.8 MB

package ëcaretí successfully unpacked and MD5 sums checked

The downloaded binary packages are in


C:\Users\asus
pc\AppData\Local\Temp\RtmpKUPZYQ\downloaded_packages
> library("caret")
Loading required package: lattice
Loading required package: ggplot2
> install.packages("lattice")
Error in install.packages : Updating loaded packages

Restarting R session...

> install.packages("lattice")
Error in install.packages : Updating loaded packages

Restarting R session...

4
> install.packages("lattice")
Error in install.packages : Updating loaded packages
> install.packages("lattice")
Installing package into ëC:/Users/asus pc/Documents/R/win-library/3.5í
(as ëlibí is unspecified)
trying URL
'https://cran.rstudio.com/bin/windows/contrib/3.5/lattice_0.20-35.zip'
Content type 'application/zip' length 1166514 bytes (1.1 MB)
downloaded 1.1 MB

package ëlatticeí successfully unpacked and MD5 sums checked


Warning in install.packages :
cannot remove prior installation of package ëlatticeí

The downloaded binary packages are in


C:\Users\asus
pc\AppData\Local\Temp\RtmpI5Y9i0\downloaded_packages
> install.packages("ggplot2")
Installing package into ëC:/Users/asus pc/Documents/R/win-library/3.5í
(as ëlibí is unspecified)
trying URL
'https://cran.rstudio.com/bin/windows/contrib/3.5/ggplot2_3.0.0.zip'
Content type 'application/zip' length 3579719 bytes (3.4 MB)
downloaded 3.4 MB

package ëggplot2í successfully unpacked and MD5 sums checked

The downloaded binary packages are in


C:\Users\asus
pc\AppData\Local\Temp\RtmpI5Y9i0\downloaded_packages
> library("lattice")
> library("ggplot2")
> library("caret")
Warning message:
In read.dcf(file.path(p, "DESCRIPTION"), c("Package", "Version")) :

5
cannot open compressed file 'C:/Users/asus pc/Documents/R/win-
library/3.5/lattice/DESCRIPTION', probable reason 'No such file or
directory'
> filename <- "Suicide.csv"
>
> dataset <- read.csv(filename, header=TRUE)
>
> validation_index <- createDataPartition(dataset$age, p=0.80, list=FALSE)
>
> validation <- dataset[-validation_index,]
> dataset <- dataset[validation_index,]
> dim(dataset)
[1] 246 4
> head(dataset)
Freq sex method age
1 4 male poison 10
2 0 male cookgas 10
3 0 male toxicgas 10
4 247 male hang 10
5 1 male drown 10
6 17 male gun 10
> summary(dataset)
Freq sex
Min. : 0.00 female:120
1st Qu.: 10.25 male :126
Median : 52.50
Mean : 171.13
3rd Qu.: 162.75
Max. :1381.00

method age
knife :29 Min. :10.00
other :29 1st Qu.:30.00
poison :28 Median :50.00
drown :27 Mean :49.88
gun :27 3rd Qu.:70.00
hang :27 Max. :90.00
(Other):79

6
> control <- trainControl(method="cv", number=10)
> metric <- "Accuracy"
> fit <- train(age~., data=dataset, method="svmRadial", metric=metric,
trControl=control)
Error: Metric Accuracy not applicable for regression models
>
> validation_index <- createDataPartition(dataset$method, p=0.80,
list=FALSE)
> validation <- dataset[-validation_index,]
> dataset <- dataset[validation_index,]
> dim(dataset)
[1] 201 4
> head(dataset)
Freq sex method age
1 4 male poison 10
2 0 male cookgas 10
3 0 male toxicgas 10
4 247 male hang 10
8 6 male jump 10
9 0 male other 10
> summary(dataset)
Freq sex
Min. : 0.0 female: 98
1st Qu.: 10.0 male :103
Median : 52.0
Mean : 163.9
3rd Qu.: 161.0
Max. :1381.0

method age
knife :24 Min. :10.00
other :24 1st Qu.:30.00
poison :23 Median :50.00
drown :22 Mean :51.04
gun :22 3rd Qu.:75.00
hang :22 Max. :90.00
(Other):64
> control <- trainControl(method="cv", number=10)

7
> metric <- "Accuracy"
> fit <- train(method~., data=dataset, method="svmRadial", metric=metric,
trControl=control)
> results <- resamples(list(svm=fit))
Error in resamples.default(list(svm = fit)) :
at least two train objects are needed
> fit2 <- train(method~., data=dataset, method="bagFDA", metric=metric,
trControl=control)
Loading required package: earth
Loading required package: plotmo
Loading required package: plotrix
Loading required package: TeachingDemos
> install.packages("e1071")
Error in install.packages : Updating loaded packages

Restarting R session...

> install.packages("e1071")
Installing package into ëC:/Users/asus pc/Documents/R/win-library/3.5í
(as ëlibí is unspecified)
trying URL
'https://cran.rstudio.com/bin/windows/contrib/3.5/e1071_1.6-8.zip'
Content type 'application/zip' length 1013497 bytes (989 KB)
downloaded 989 KB

package ëe1071í successfully unpacked and MD5 sums checked

The downloaded binary packages are in


C:\Users\asus
pc\AppData\Local\Temp\Rtmpgd93bj\downloaded_packages
> results <- resamples(list(svm=fit, fit))
Error in resamples(list(svm = fit, fit)) :
could not find function "resamples"
> results <- resamples(list(svm=fit, fit2))
Error in resamples(list(svm = fit, fit2)) :
could not find function "resamples"
> fit2 <- train(method~., data=dataset, method="bagFDA", metric=metric,
trControl=control)

8
Error in train(method ~ ., data = dataset, method = "bagFDA", metric =
metric, :
could not find function "train"
> library("caret", lib.loc="~/R/win-library/3.5")
Loading required package: lattice
Loading required package: ggplot2
Need help? Try Stackoverflow: https://stackoverflow.com/tags/ggplot2.
> library("e1071", lib.loc="~/R/win-library/3.5")
> library("earth", lib.loc="~/R/win-library/3.5")
Loading required package: plotmo
Loading required package: plotrix
Loading required package: TeachingDemos
> library("class", lib.loc="C:/Program Files/R/R-3.5.1/library")
> fit2 <- train(method~., data=dataset, method="bagFDA", metric=metric,
trControl=control)
> results <- resamples(list(svm=fit, fit2))
> summary(results)

Call:
summary.resamples(object = results)

Models: svm, Model2


Number of resamples: 10

Accuracy
Min. 1st Qu. Median
svm 0.1000000 0.1397727 0.2440476
Model2 0.1904762 0.3000000 0.3157895
Mean 3rd Qu. Max. NA's
svm 0.2237324 0.2875000 0.3684211 0
Model2 0.3394839 0.4066986 0.5000000 0
Kappa
Min. 1st Qu. Median
svm -0.02272727 0.02837779 0.1476998
Model2 0.08695652 0.21346463 0.2341067
Mean 3rd Qu. Max. NA's
svm 0.1259243 0.2006152 0.2897196 0
Model2 0.2570373 0.3303799 0.4269341 0

9
>
> Print(fit)
Error in Print(fit) : could not find function "Print"
>
> print(fit)
Support Vector Machines with Radial Basis Function Kernel

201 samples
3 predictor
9 classes: 'cookgas', 'drown', 'gun', 'hang', 'jump', 'knife', 'other', 'poison',
'toxicgas'

No pre-processing
Resampling: Cross-Validated (10 fold)
Summary of sample sizes: 181, 179, 183, 181, 182, 181, ...
Resampling results across tuning parameters:

C Accuracy Kappa
0.25 0.1829035 0.08349059
0.50 0.2038084 0.10531461
1.00 0.2237324 0.12592428

Tuning parameter 'sigma' was held


constant at a value of 1.51453
Accuracy was used to select the
optimal model using the largest value.
The final values used for the model
were sigma = 1.51453 and C = 1.
>
> print(fit2)
Bagged Flexible Discriminant Analysis

201 samples
3 predictor
9 classes: 'cookgas', 'drown', 'gun', 'hang', 'jump', 'knife', 'other', 'poison',
'toxicgas'
No pre-processing
Resampling: Cross-Validated (10 fold)

10
Summary of sample sizes: 180, 182, 182, 180, 181, 179, ...
Resampling results across tuning parameters:

nprune Accuracy Kappa


2 0.2542436 0.1559828
6 0.3194372 0.2345348
11 0.3394839 0.2570373

Tuning parameter 'degree' was


held constant at a value of 1
Accuracy was used to select the
optimal model using the largest value.
The final values used for the model
were degree = 1 and nprune = 11.
>
> predictions <- predict(fit, validation)
>
> confusionMatrix(predictions, validation$method)
Confusion Matrix and Statistics

Reference
Prediction cookgas drown gun hang jump
cookgas 1 2 0 0 0
drown 0 1 0 0 0
gun 3 1 1 1 1
hang 0 0 0 3 0
jump 0 0 1 0 0
knife 1 0 0 0 0
other 0 0 1 0 3
poison 0 0 0 1 0
toxicgas 0 1 2 0 1

Reference
Prediction knife other poison toxicgas
cookgas 1 0 0 0
drown 1 2 0 3
gun 0 1 0 2
hang 0 0 3 0

11
jump 2 1 0 0
knife 0 0 0 0
other 1 0 0 0
poison 0 0 2 0
toxicgas 0 1 0 0

Overall Statistics

Accuracy : 0.1778
95% CI : (0.08, 0.3205)
No Information Rate : 0.1111
P-Value [Acc > NIR] : 0.1208

Kappa : 0.075
Mcnemar's Test P-Value : NA

Statistics by Class:

Class: cookgas
Sensitivity 0.20000
Specificity 0.92500
Pos Pred Value 0.25000
Neg Pred Value 0.90244
Prevalence 0.11111
Detection Rate 0.02222
Detection Prevalence 0.08889
Balanced Accuracy 0.56250

Class: drown
Sensitivity 0.20000
Specificity 0.85000
Pos Pred Value 0.14286
Neg Pred Value 0.89474
Prevalence 0.11111
Detection Rate 0.02222
Detection Prevalence 0.15556
Balanced Accuracy 0.52500

12
Class: gun
Sensitivity 0.20000
Specificity 0.77500
Pos Pred Value 0.10000
Neg Pred Value 0.88571
Prevalence 0.11111
Detection Rate 0.02222
Detection Prevalence 0.22222
Balanced Accuracy 0.48750

Class: hang
Sensitivity 0.60000
Specificity 0.92500
Pos Pred Value 0.50000
Neg Pred Value 0.94872
Prevalence 0.11111
Detection Rate 0.06667
Detection Prevalence 0.13333
Balanced Accuracy 0.76250

Class: jump
Sensitivity 0.00000
Specificity 0.90000
Pos Pred Value 0.00000
Neg Pred Value 0.87805
Prevalence 0.11111
Detection Rate 0.00000
Detection Prevalence 0.08889
Balanced Accuracy 0.45000

Class: knife
Sensitivity 0.00000
Specificity 0.97500
Pos Pred Value 0.00000
Neg Pred Value 0.88636
Prevalence 0.11111
Detection Rate 0.00000
Detection Prevalence 0.02222

13
Balanced Accuracy 0.48750

Class: other
Sensitivity 0.0000
Specificity 0.8750
Pos Pred Value 0.0000
Neg Pred Value 0.8750
Prevalence 0.1111
Detection Rate 0.0000
Detection Prevalence 0.1111
Balanced Accuracy 0.4375

Class: poison
Sensitivity 0.40000
Specificity 0.97500
Pos Pred Value 0.66667
Neg Pred Value 0.92857
Prevalence 0.11111
Detection Rate 0.04444
Detection Prevalence 0.06667
Balanced Accuracy 0.68750

Class: toxicgas
Sensitivity 0.0000
Specificity 0.8750
Pos Pred Value 0.0000
Neg Pred Value 0.8750
Prevalence 0.1111
Detection Rate 0.0000
Detection Prevalence 0.1111
Balanced Accuracy 0.4375
>
>
> predictions2 <- predict(fit2, validation)
>
> confusionMatrix(predictions2, validation$method)
Confusion Matrix and Statistics

14
Reference
Prediction cookgas drown gun hang jump
cookgas 4 3 1 0 0
drown 0 1 0 0 0
gun 0 0 2 0 0
hang 0 0 0 2 0
jump 0 0 0 0 3
knife 1 0 0 1 1
other 0 0 0 0 1
poison 0 1 2 2 0
toxicgas 0 0 0 0 0

Reference
Prediction knife other poison toxicgas
cookgas 1 0 0 0
drown 0 0 0 1
gun 1 0 0 1
hang 0 0 3 0
jump 0 4 0 0
knife 3 0 0 3
other 0 0 0 0
poison 0 1 2 0
toxicgas 0 0 0 0

Overall Statistics

Accuracy : 0.3778
95% CI : (0.2377, 0.5346)
No Information Rate : 0.1111
P-Value [Acc > NIR] : 3.02e-06

Kappa : 0.3
Mcnemar's Test P-Value : NA

Statistics by Class:

Class: cookgas

15
Sensitivity 0.80000
Specificity 0.87500
Pos Pred Value 0.44444
Neg Pred Value 0.97222
Prevalence 0.11111
Detection Rate 0.08889
Detection Prevalence 0.20000
Balanced Accuracy 0.83750

Class: drown
Sensitivity 0.20000
Specificity 0.97500
Pos Pred Value 0.50000
Neg Pred Value 0.90698
Prevalence 0.11111
Detection Rate 0.02222
Detection Prevalence 0.04444
Balanced Accuracy 0.58750

Class: gun
Sensitivity 0.40000
Specificity 0.95000
Pos Pred Value 0.50000
Neg Pred Value 0.92683
Prevalence 0.11111
Detection Rate 0.04444
Detection Prevalence 0.08889
Balanced Accuracy 0.67500

Class: hang
Sensitivity 0.40000
Specificity 0.92500
Pos Pred Value 0.40000
Neg Pred Value 0.92500
Prevalence 0.11111
Detection Rate 0.04444
Detection Prevalence 0.11111
Balanced Accuracy 0.66250

16
Class: jump
Sensitivity 0.60000
Specificity 0.90000
Pos Pred Value 0.42857
Neg Pred Value 0.94737
Prevalence 0.11111
Detection Rate 0.06667
Detection Prevalence 0.15556
Balanced Accuracy 0.75000

Class: knife
Sensitivity 0.60000
Specificity 0.85000
Pos Pred Value 0.33333
Neg Pred Value 0.94444
Prevalence 0.11111
Detection Rate 0.06667
Detection Prevalence 0.20000
Balanced Accuracy 0.72500

Class: other
Sensitivity 0.00000
Specificity 0.97500
Pos Pred Value 0.00000
Neg Pred Value 0.88636
Prevalence 0.11111
Detection Rate 0.00000
Detection Prevalence 0.02222
Balanced Accuracy 0.48750

Class: poison
Sensitivity 0.40000
Specificity 0.85000
Pos Pred Value 0.25000
Neg Pred Value 0.91892
Prevalence 0.11111
Detection Rate 0.04444

17
Detection Prevalence 0.17778
Balanced Accuracy 0.62500

Class: toxicgas
Sensitivity 0.0000
Specificity 1.0000
Pos Pred Value NaN
Neg Pred Value 0.8889
Prevalence 0.1111
Detection Rate 0.0000
Detection Prevalence 0.0000
Balanced Accuracy 0.5000
>
>
>

18
3.0 RESULT

Head & Summary Dataset

Summary

19
Fit1

Fit2

20
Statistics

21
Prediction Fit2

22
Overall Statistics

23
24
25
4.0 APPENDIX

List of Dataset

No Freq sex method age


1 4 male poison 10
2 0 male cookgas 10
3 0 male toxicgas 10
4 247 male hang 10
5 1 male drown 10
6 17 male gun 10
7 1 male knife 10
8 6 male jump 10
9 0 male other 10
10 348 male poison 15
11 7 male cookgas 15
12 67 male toxicgas 15
13 578 male hang 15
14 22 male drown 15
15 179 male gun 15
16 11 male knife 15
17 74 male jump 15
18 175 male other 15
19 808 male poison 20
20 32 male cookgas 20
21 229 male toxicgas 20
22 699 male hang 20
23 44 male drown 20
24 316 male gun 20
25 35 male knife 20
26 109 male jump 20
27 289 male other 20
28 789 male poison 25
29 26 male cookgas 25
30 243 male toxicgas 25
31 648 male hang 25
32 52 male drown 25

26
33 268 male gun 25
34 38 male knife 25
35 109 male jump 25
36 226 male other 25
37 916 male poison 30
38 17 male cookgas 30
39 257 male toxicgas 30
40 825 male hang 30
41 74 male drown 30
42 291 male gun 30
43 52 male knife 30
44 123 male jump 30
45 281 male other 30
46 1118 male poison 35
47 27 male cookgas 35
48 313 male toxicgas 35
49 1278 male hang 35
50 87 male drown 35
51 293 male gun 35
52 49 male knife 35
53 134 male jump 35
54 268 male other 35
55 926 male poison 40
56 13 male cookgas 40
57 250 male toxicgas 40
58 1273 male hang 40
59 89 male drown 40
60 299 male gun 40
61 53 male knife 40
62 78 male jump 40
63 198 male other 40
64 855 male poison 45
65 9 male cookgas 45
66 203 male toxicgas 45
67 1381 male hang 45
68 71 male drown 45
69 347 male gun 45

27
70 68 male knife 45
71 103 male jump 45
72 190 male other 45
73 684 male poison 50
74 14 male cookgas 50
75 136 male toxicgas 50
76 1282 male hang 50
77 87 male drown 50
78 229 male gun 50
79 62 male knife 50
80 63 male jump 50
81 146 male other 50
82 502 male poison 55
83 6 male cookgas 55
84 77 male toxicgas 55
85 972 male hang 55
86 49 male drown 55
87 151 male gun 55
88 46 male knife 55
89 66 male jump 55
90 77 male other 55
91 516 male poison 60
92 5 male cookgas 60
93 74 male toxicgas 60
94 1249 male hang 60
95 83 male drown 60
96 162 male gun 60
97 52 male knife 60
98 92 male jump 60
99 122 male other 60
100 513 male poison 65
101 8 male cookgas 65
102 31 male toxicgas 65
103 1360 male hang 65
104 75 male drown 65
105 164 male gun 65
106 56 male knife 65

28
107 115 male jump 65
108 95 male other 65
109 425 male poison 70
110 5 male cookgas 70
111 21 male toxicgas 70
112 1268 male hang 70
113 90 male drown 70
114 121 male gun 70
115 44 male knife 70
116 119 male jump 70
117 82 male other 70
118 266 male poison 75
119 4 male cookgas 75
120 9 male toxicgas 75
121 866 male hang 75
122 63 male drown 75
123 78 male gun 75
124 30 male knife 75
125 79 male jump 75
126 34 male other 75
127 159 male poison 80
128 2 male cookgas 80
129 2 male toxicgas 80
130 479 male hang 80
131 39 male drown 80
132 18 male gun 80
133 18 male knife 80
134 46 male jump 80
135 19 male other 80
136 70 male poison 85
137 1 male cookgas 85
138 0 male toxicgas 85
139 259 male hang 85
140 16 male drown 85
141 10 male gun 85
142 9 male knife 85
143 18 male jump 85

29
144 10 male other 85
145 18 male poison 90
146 0 male cookgas 90
147 1 male toxicgas 90
148 76 male hang 90
149 4 male drown 90
150 2 male gun 90
151 4 male knife 90
152 6 male jump 90
153 2 male other 90
154 28 female poison 10
155 0 female cookgas 10
156 3 female toxicgas 10
157 20 female hang 10
158 0 female drown 10
159 1 female gun 10
160 0 female knife 10
161 10 female jump 10
162 6 female other 10
163 353 female poison 15
164 2 female cookgas 15
165 11 female toxicgas 15
166 81 female hang 15
167 6 female drown 15
168 15 female gun 15
169 2 female knife 15
170 43 female jump 15
171 47 female other 15
172 540 female poison 20
173 4 female cookgas 20
174 20 female toxicgas 20
175 111 female hang 20
176 24 female drown 20
177 9 female gun 20
178 9 female knife 20
179 78 female jump 20
180 47 female other 20

30
181 454 female poison 25
182 6 female cookgas 25
183 27 female toxicgas 25
184 125 female hang 25
185 33 female drown 25
186 26 female gun 25
187 7 female knife 25
188 86 female jump 25
189 75 female other 25
190 530 female poison 30
191 2 female cookgas 30
192 29 female toxicgas 30
193 178 female hang 30
194 42 female drown 30
195 14 female gun 30
196 20 female knife 30
197 92 female jump 30
198 78 female other 30
199 688 female poison 35
200 5 female cookgas 35
201 44 female toxicgas 35
202 272 female hang 35
203 64 female drown 35
204 24 female gun 35
205 14 female knife 35
206 98 female jump 35
207 110 female other 35
208 566 female poison 40
209 4 female cookgas 40
210 24 female toxicgas 40
211 343 female hang 40
212 76 female drown 40
213 18 female gun 40
214 22 female knife 40
215 103 female jump 40
216 86 female other 40
217 716 female poison 45

31
218 6 female cookgas 45
219 24 female toxicgas 45
220 447 female hang 45
221 94 female drown 45
222 13 female gun 45
223 21 female knife 45
224 95 female jump 45
225 88 female other 45
226 942 female poison 50
227 7 female cookgas 50
228 26 female toxicgas 50
229 691 female hang 50
230 184 female drown 50
231 21 female gun 50
232 37 female knife 50
233 129 female jump 50
234 131 female other 50
235 723 female poison 55
236 3 female cookgas 55
237 14 female toxicgas 55
238 527 female hang 55
239 163 female drown 55
240 14 female gun 55
241 30 female knife 55
242 92 female jump 55
243 92 female other 55
244 820 female poison 60
245 8 female cookgas 60
246 8 female toxicgas 60
247 702 female hang 60
248 245 female drown 60
249 11 female gun 60
250 35 female knife 60
251 140 female jump 60
252 114 female other 60
253 740 female poison 65
254 8 female cookgas 65

32
255 4 female toxicgas 65
256 785 female hang 65
257 271 female drown 65
258 4 female gun 65
259 38 female knife 65
260 156 female jump 65
261 90 female other 65
262 624 female poison 70
263 6 female cookgas 70
264 4 female toxicgas 70
265 610 female hang 70
266 244 female drown 70
267 1 female gun 70
268 27 female knife 70
269 129 female jump 70
270 46 female other 70
271 495 female poison 75
272 8 female cookgas 75
273 1 female toxicgas 75
274 420 female hang 75
275 161 female drown 75
276 2 female gun 75
277 29 female knife 75
278 129 female jump 75
279 35 female other 75
280 292 female poison 80
281 3 female cookgas 80
282 2 female toxicgas 80
283 223 female hang 80
284 78 female drown 80
285 0 female gun 80
286 10 female knife 80
287 84 female jump 80
288 23 female other 80
289 113 female poison 85
290 4 female cookgas 85
291 0 female toxicgas 85

33
292 83 female hang 85
293 14 female drown 85
294 0 female gun 85
295 6 female knife 85
296 34 female jump 85
297 2 female other 85
298 24 female poison 90
299 1 female cookgas 90
300 0 female toxicgas 90
301 19 female hang 90
302 4 female drown 90
303 0 female gun 90
304 2 female knife 90
305 7 female jump 90
306 0 female other 90

34
5.0 REFERENCE

Choi, G., Lee, K., Seo, D., Kim, S., Kim, D., & Lee, Y. (2015). Analysis of medical
data using the big data and R. In Advances in Computer Science and Ubiquitous
Computing (pp. 867-873). Springer, Singapore.

Gandrud, C. (2016). Reproducible research with R and R studio. Chapman and


Hall/CRC.

Horton, N. J., & Kleinman, K. (2015). Using R and RStudio for data management,
statistical analysis, and graphics. Chapman and Hall/CRC.

Racine, J. S. (2012). RStudio: A Platform‐Independent IDE for R and Sweave.


Journal of Applied Econometrics, 27(1), 167-172.

35

You might also like