CategoricalTable: Cross Table of Categorical Covariates

Description Usage Arguments Examples

View source: R/CategoricalTable.R

Description

This function generates a data.table tabulating the different levels of a categorical independent variable and the corresponding probabilities of the binary dependent variable taking the value of 1.

Usage

1
CategoricalTable(Target, Covariate, DT, UseLogit = T)

Arguments

Target

The name of binary target to be predicted.

Covariate

The name of the covariate.

DT

A data.table containing both the target and covariate.

UseLogit

If the value is TRUE, Log Odds will be generated. Otherwise, a set of score derived from Log Odds, scaled from 0 to 100, will be generated.

Examples

1
CategoricalTable(Target = "am", Covariate = "gear", DT = mtcars)

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