Description Usage Arguments Details Value Note Author(s)
Create a descriptive analysis of the marginal distribution of a numeric variable on a specific levels of combination from factor variables.
1 | descr_stats(num_int_var, marg_dist_df, marg_dist_choice = NULL)
|
num_int_var |
ONE NUMERICAL VARIABLE that represents the marginal distribution |
marg_dist_df |
numeric or integer vector that represent a marginal distribution |
marg_dist_choice |
Type of descriptive statistical analysis |
This function allows you to return different types of descriptive statistic analysis from the marginal distribution of a numeric variable on a specific levels of combination from factor variables.
"This function returns different results based on the arguments marg_dist_choice
argument".
If marg_dist_choice = "BOUNDARIES"
, list containing the bound, bins number, bin size and the interval values of the marginal distribution marg_dist_df
of num_int_var
on a specific combination level.
If marg_dist_choice = "DESCRIPTIVE_FREQUENCY"
, the frequency table of the marginal distribution marg_dist_df
of num_int_var
on a specific combination level.
If marg_dist_choice = "MODE_VALUE"
, the mode(s) of the marginal distribution marg_dist_df
of num_int_var
on a specific combination level.
If marg_dist_choice = "MODE_DESCRIPTION"
, the interpretation of the mode(s) of the marginal distribution marg_dist_df
of num_int_var
on a specific combination level.
If marg_dist_choice = "CENTRAL_TENDENCY"
, dataset with the mode, mean min, q25, median, q75,p90,p95,p99,max, midrange of the marginal distribution marg_dist_df
of num_int_var
on a specific combination level.
If marg_dist_choice = "DISPERSION_TENDENCY"
, dataset with the variance, standard deviation, interquantil range and range of the marginal distribution marg_dist_df
of num_int_var
on a specific combination level.
If marg_dist_choice = "COEFFICIENTS"
, list with the coefficient of variation, standard error, skeweness and kurtosis of the marginal distribution marg_dist_df
of num_int_var
on a specific combination level.
If marg_dist_choice = "COEFFICIENTS_DESCRIPTION"
, list with the interpretation of the coefficient of variation, standard error, skeweness and kurtosis of the marginal distribution marg_dist_df
of num_int_var
on a specific combination level.
If marg_dist_choice = NULL
, list where each sublist is one of the previous mentioned.
marg_dist_df
needs to be a filter sublist from marg_dist
function.
This function is applied to one numeric variable num_int_var
If you are not using a shiny app, is better to use general_descript_stats
function.
Eduardo Trujillo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.