| ExpStat {SmartEDA} | R Documentation | 
Function provides summary statistics for individual categorical predictors
Description
Provides bivariate summary statistics for all the categorical predictors against target variables. Output includes chi - square value, degrees of freedom, information value, p-value
Usage
ExpStat(X, Y, valueOfGood = NULL)
Arguments
| X | Independent categorical variable. | 
| Y | Binary response variable, it can take values of either 1 or 0. | 
| valueOfGood | Value of Y that is used as reference category. | 
Details
Summary statistics included Pearson's Chi-squared Test for Count Data, "chisq.test" which performs chi-squared contingency table tests and goodness-of-fit tests. If any NA value present in X or Y variable, which will be considered as NA as in category while computing the contingency table.
Also added unique levels for each X categorical variables and degrees of freedom
Value
The function provides summary statistics like
-  Uniquenumber of levels
-  Chi squarestatistics
-  Pvalue
-  dfDegrees of freedom
-  IVInformation value
-  Predictiveclass
See Also
Examples
X = mtcars$carb
Y = mtcars$am
ExpStat(X,Y,valueOfGood = 1)