Description Usage Arguments Value Examples
These are set of tools for easy credit scorecard build. The set includes sc.score
,
sc.point
and sc.corplot
.
1 2 3 4 5 6 7 | sc.score(data, model, pdo, score, odd)
sc.point(data, woe, model, pdo, score, odd)
sc.corplot(model, data, s = NULL)
sc.performance(model, X, y, s = NULL, plot = F)
|
data |
A data frame which contains target varible as well as predictor variables. |
model |
A model built. |
pdo |
Point double odds. |
score |
Score at which the desired odd is. |
odd |
The desired odd. |
woe |
A woe result which is calculated by |
s |
In case of using |
X |
A data frame which has only predictor variables. |
y |
A vector of target variable. |
plot |
A logical scalar. Plot ROC curve. |
sc.score
. The output is a data frame with chosen variables in the model. All variables are in score point.
There is also a final score.
sc.point
. The output is a list with chosen variables in the model. Variables with their values and score point.
sc.corplot
. The output plot is generated showing correlated variables.
sc.performance
. The output GINI & KS is printed.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# Load library
library(easysc)
# Generate final score data based on the model built with data.
scoredata <- sc.score(data = df, model = model.Lasso, pdo = 100, score = 800, odd = 5)
# Generate final scorecard based on the model built with data.
scorecard <- sc.point(data = df, woe = woe, model = model.Lasso, pdo = 100, score = 800, odd = 5)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.