dt_prepare: Data Preparation For Create Scorecard

Description Usage Arguments Value Examples

View source: R/credit.scorecard-package.R

Description

Data preparation before create scorecard.

Usage

1
dt_prepare(dataset, y, positive_y = "bad|1")

Arguments

dataset

A data.frame which contains dependent and independent(s) variables.

y

A character name of dependent/target variable.

positive_y

One of dependent/target value that marked as positive class.

Value

The sum of x and y

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Not run

data("germancredit")
dt = dt_prepare(dataset = germancredit, y = "creditability", positive_y = "bad")

# Create scorecard
score = create_scorecard(dt)

# Convert scorecard as data.frame
scorecards = dt_score(score)
scorecards

# End Not run

aephidayatuloh/credit.scorecard documentation built on May 27, 2019, 11:54 a.m.