xgb_data {creditmodel}R Documentation

XGboost data

Description

xgb_data is for prepare data using in training_model.

Usage

xgb_data(
  dat_train,
  target,
  dat_test = NULL,
  x_list = NULL,
  prop = 0.7,
  occur_time = NULL
)

Arguments

dat_train

data.frame of train data. Default is NULL.

target

name of target variable.

dat_test

data.frame of test data. Default is NULL.

x_list

names of independent variables of raw data. Default is NULL.

prop

Percentage of train-data after the partition. Default: 0.7.

occur_time

The name of the variable that represents the time at which each observation takes place.Default is NULL.


[Package creditmodel version 1.3.1 Index]