comparison_two_data {autoScorecard}R Documentation

Compare the Distribution of the Two Data

Description

Compare the Distribution of the Two Data

Usage

comparison_two_data(df1, df2, key_var, y_var)

Arguments

df1

A data.

df2

A data.

key_var

A name of index variable name.

y_var

A name of target variable.

Value

No return value, called for side effects

Examples

accepts <- read.csv( system.file( "extdata", "accepts.csv" , package = "autoScorecard" ))
feature <- stats::na.omit( accepts[,c(1,3,7:23)] )
d = sort( sample( nrow( feature ), nrow( feature )*0.7))
train <- feature[d,]
test <- feature[-d,]
comparison_two_data( df1 = train , df2 =  test ,
key_var = c("application_id","account_number"), y_var="bad_ind"   )

[Package autoScorecard version 0.3.0 Index]