Description Usage Arguments Value Examples
View source: R/titanicFunction.R
Returns the probability of the given person surviving or not.
1 | gpFunction(Sex, Class, Age, Family, Embarked, Fare, model = NULL)
|
Sex |
male, female: include quotation marks ( |
Class |
First, Second, Third,; include quotation marks
( |
Age |
real number |
Family |
integer |
Embarked |
C,Q,S; include quotation marks ( |
Fare |
real number |
model |
By default this is the model given by stepwise regression using the starting model 3 (Model including all three-way interaction terms and lower terms, plus some polynomial terms). Can be changed. |
The probability of someone with those characteristics surviving is returned.
1 2 3 4 | Test1 <- gpFunction("male", "Third", 20, 0, "S", 8.05)
Test2 <- gpFunction("female", "Third", 21, 0, "Q", 7.8792)
Test3 <- gpFunction("male", "First", 40, 0, "C", 27.7208)
Test4 <- gpFunction("female", "Second", 3, 3, "C", 41.5792)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.