View source: R/comparison_two_data.R
comparison_two_data | R Documentation |
Compare the Distribution of the Two Data
comparison_two_data(df1, df2, key_var, y_var)
df1 |
A data. |
df2 |
A data. |
key_var |
A name of index variable name. |
y_var |
A name of target variable. |
No return value, called for side effects
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" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.