CovariateSummary: Summary of Covariates

Description Usage Arguments Details Examples

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, Data, Skip = NULL, Type = "Binary")

Arguments

Target

A string of the name of target to be predicted.

Data

A data.frame or data.table containing both the target and covariates.

Skip

A vector of strings containing the names of columns to be skipped, such as ID.

Type

The type of dependent variables, either "Binary" or "Continuous". Default is "Binary".

Details

If the Type is "Binary", it returns a data.table containing the names of covariates, number of NA, number of 0, and Area Under the Curve (AUC).

If the Type is "Continuous", it returns a data.table containing the names of covariates, number of NA, number of 0, Adjusted R-squared, and p-value.

Examples

1
VariableSummary(Target = "am", Data = mtcars, Skip = c("vs", "carb"), Type = "Binary")

Then-Terence/LiteXploreR documentation built on May 18, 2019, 8:07 p.m.