Description Usage Arguments Examples
View source: R/model_scorecard.R
Obntaing the weigths and score for every variable in the model
1 2 | model_predict(model, newdata = NULL, pdo = 20, score0 = 600,
pdo0 = 50/1, turn.orientation = FALSE)
|
model |
A glm logistic model |
newdata |
newdata |
pdo |
default 20 |
score0 |
default 600 |
pdo0 |
default to 50/1 |
turn.orientation |
change the orientation of the scorecard points |
1 2 3 4 5 6 7 8 9 | data("german_credit")
model <- glm(
good_bad ~ purpose + present_employment_since + credit_history,
data = german_credit, family = binomial
)
model_predict(model, newdata = german_credit)
model_predict(model, newdata = head(german_credit))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.