Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Year Location Country Age Injury Survived Time
- 0 2016 chittwan Nepal 09 attack on head 0 11h00
- 1 2016 siberia Russia 19 Neck Injury 0 13h00
- 2 2016 Oba Hills Nigeria 23 lower leg 1 04h43
- 3 2016 Edumanom Nigeria 65 leg injury 0 11h00
- 4 2016 Kanha India NaN attacked from behind 1 18h00
- 5 2016 Edumanom Nigeria 09 attack on head 0 19h00
- 6 2016 Ranthambore India 39 Neck Injury 0 11h00
- 7 2016 chittwan Nepal 13 attacked from behind 1 09h12
- 8 2016 Edumanom Nigeria NaN leg injury 1 11h00
- 9 2016 Bikin Russia NaN leg injury 1 13h00
- library(MASS) # Load the MASS library, which contains the glm function
- model = glm(Survived ~ Location + Country + Injury + Time) # Define a model of whether the victim survived, predicting on location, country, injury and time of attack
- summary(model) # View the model coefficients to interpret the model
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement