Description Usage Arguments Value
View source: R/propensity_plots.R
Create plots for exploratory analysis for binary response vs predictor. Also creates frequency distribution of predictor.
1 | propensity.univariate(data_table, target_var, cat_var, y_value)
|
data_table |
A data frame containing target_var and cat_var. |
target_var |
Name of the target variable (binary variable) field in the dataframe data_table |
cat_var |
Name of the predictor variable field in the dataframe data_table. If the cat_var is numeric and has more than 10 levels it will be broken down into 10 buckets. |
y_value |
It is the value of target_var (binary response variable) that we are interested in. |
2x1 grid plot. Top plot is propensity of target var == y_value against cat_var. The bottom plot is frequency distribution of cat_var in the dataset.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.