Sean Angioilllo
10 Jan 2018
We have all heard of a policy of “Women and children first” on the sinking titanic. A dataset provided by Kaggle will help us explore the extent to which this policy dictated survival.
Below is the formula our model uses to predict the probability of a passenger's survival.
form <- formula(Survived ~ Pclass + Age + Sex + FamilySize + Fare)
mod <- glm(form, data = training, family = "binomial")