Description Usage Arguments Details
These functions create tables summarizing how the variable var_name
in
the dataset df
relates to the specified target variable
target_var
.
1 2 3 4 | create_analysis_table(df, var_name, target_var, type = "count")
create_numeric_table(df, var_name, target_var, type = "count",
bins = 30)
|
df |
A |
var_name |
A string with the variable name to analyze |
target_var |
A string with the name of the target variable |
type |
Can be |
bins |
Number of bins to use for numeric variables |
You can specify the type
as 'count'
or 'average'
. Use
'count'
to get counts of each variable value for the values of the
target variable. Use 'average'
to get the average of the target
variable for variable value.
In the case of create_numeric_table
the input variable is a numeric
variable and its values are created as bins, with number of bins defined as
bins
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.