Description Usage Arguments Details Examples
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.
1 | CovariateSummary(Target, Data, Skip = NULL, Type = "Binary")
|
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". |
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.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.