CovariateSummary: Summary of Covariates

Description Usage Arguments Details Examples

View source: R/CovariateSummary.R

Description

This function allows you to explore the discriminatory power of covariates against a binary target, and summarizes the number of NA and 0 in each of the covariates.

Usage

1
CovariateSummary(Target, DT, Skip = NULL)

Arguments

Target

A string of the name of target to be predicted.

DT

A data.table containing both the target and covariates.

Skip

A vector of strings containing the names of columns to be skipped.

Details

It returns a data.table containing the names of covariates, number of NA, number of 0, and Area Under the Curve (AUC).

Examples

1
CovariateSummary(Target = "am", DT = mtcars, Skip = c("vs", "carb"))

Then-Terence/LXR documentation built on March 12, 2021, 12:04 a.m.