model_predict: Obntaing the weigths and score for every variable in the...

Description Usage Arguments Examples

View source: R/model_scorecard.R

Description

Obntaing the weigths and score for every variable in the model

Usage

1
2
model_predict(model, newdata = NULL, pdo = 20, score0 = 600,
  pdo0 = 50/1, turn.orientation = FALSE)

Arguments

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

Examples

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))

jbkunst/irks documentation built on May 22, 2021, 2:09 p.m.