SQL Code

Share:

Description

It outputs a SQL code to facilitate the generation of new binned characetristic in a SQL environment.

Usage

1

Arguments

ivout

An object generated by smbinning.

Value

A text with the SQL code for binning.

Examples

1
2
3
4
5
6
7
8
9
# Package loading and data exploration
library(smbinning) # Load package and its data
data(chileancredit) # Load smbinning sample dataset (Chilean Credit)
chileancredit.train=subset(chileancredit,FlagSample==1)
chileancredit.test=subset(chileancredit,FlagSample==0)
result=smbinning(df=chileancredit.train,y="FlagGB",x="TOB",p=0.05) # Run and save result

# Generate SQL code
smbinning.sql(result)