Description Usage Arguments Details Value Note Author(s)
Create a descriptive analysis from a numeric variable based on the levels of factor variables from a dataset.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | general_descript_stats(
df,
num_int_var,
statistical_choice = c("TABLES.FREQUENCY.BOUNDARIES",
"TABLES.FREQUENCY.DESCRIPTIVE_FREQUENCY", "TABLES.MODE.MODE_VALUE",
"TABLES.MODE.MODE_DESCRIPTION", "TABLES.TENDENCY.CENTRAL_TENDENCY",
"TABLES.TENDENCY.DISPERSION_TENDENCY",
"TABLES.STATISTICAL_COEFFICIENTS.COEFFICIENTS",
"TABLES.STATISTICAL_COEFFICIENTS.COEFFICIENTS_DESCRIPTION",
"TABLES.CONDITIONAL.CONDITIONAL_FREQUENCY",
"TABLES.CONDITIONAL.CONDITIONAL_EXPENCTATION", "PLOTS.DESCRIPTIVE_FREQUENCY.OGIVE",
"PLOTS.DESCRIPTIVE_FREQUENCY.CUMMULATIVE", "PLOTS.DESCRIPTIVE_FREQUENCY.HISTOGRAM",
"PLOTS.CENTRAL_TENDENCY.GENERAL_BOXPLOT", "PLOTS.CENTRAL_TENDENCY.BINS_BOXPLOT",
"PLOTS.ANALYZING_MEANS.STANDARD_ERROR", "PLOTS.ANALYZING_MEANS.COMPARING_MEANS")
)
|
df |
dataset to obtain the descriptive statistical analysis |
num_int_var |
ONE NUMERICAL VARIABLE from the dataset |
statistical_choice |
Type of descriptive statistical analysis |
This function allows you to return different types descriptive statistic analysis from a numeric variable based on the levels of factor variables from a dataset.
"This function returns different results based on the arguments statistical_choice
argument".
If statistical_choice = "TABLES.FREQUENCY.BOUNDARIES"
, list where each element is going to be a list containing the bound, bins number, bin size and the interval values for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "TABLES.FREQUENCY.DESCRIPTIVE_FREQUENCY"
, list where each element is going to be the frequency table for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "TABLES.MODE.MODE_VALUE"
, list where each element is going to be an the mode(s) for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "TABLES.MODE.MODE_DESCRIPTION"
, list where each element is going to be the interpretation of the mode(s) for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "TABLES.TENDENCY.CENTRAL_TENDENCY"
,list where each element is going to be a dataset with the mode, mean min, q25, median, q75,p90,p95,p99,max, midrange for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "TABLES.TENDENCY.DISPERSION_TENDENCY"
,list where each element is going to be a dataset with the variance, standard deviation, interquantil range and range for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "TABLES.STATISTICAL_COEFFICIENTS.COEFFICIENTS"
, list where each element is going to be a list with the coefficient of variation, standard error, skeweness and kurtosis for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "TABLES.STATISTICAL_COEFFICIENTS.COEFFICIENTS_DESCRIPTION"
, list where each element is going to be a list with the interpretation of the coefficient of variation, standard error, skeweness and kurtosis for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "TABLES.CONDITIONAL.CONDITIONAL_FREQUENCY"
, list where each element is going to be a dataset with the conditional probability on that specific level-combination given the join observations on other specific level-combination for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "TABLES.CONDITIONAL.CONDITIONAL_EXPENCTATION"
, list where each element is going to be a dataset with the conditional expectancy, conditional variance & conditional standard deviation on that specific level-combination given the join observations on other specific level-combination for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "PLOTS.DESCRIPTIVE_FREQUENCY.OGIVE"
, list where each element is going to be the ogive plot for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "PLOTS.DESCRIPTIVE_FREQUENCY.CUMMULATIVE"
, list where each element is going to be the accumulative distribution function plot for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "PLOTS.DESCRIPTIVE_FREQUENCY.HISTOGRAM"
, list where each element is going to be the histogram plot for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "PLOTS.CENTRAL_TENDENCY.GENERAL_BOXPLOT"
, list where each element is going to be the box plot for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "PLOTS.CENTRAL_TENDENCY.BINS_BOXPLOT"
, list where each element is going to be the box plot on each bin from the frequency table for the distribution of the num_int_var
on a specific combination level of the factor variables
If statistical_choice = "PLOTS.ANALYZING_MEANS.STANDARD_ERROR"
, bar plot comparing the standard error of each combination level of the factor variables for the distribution of the num_int_var
.
If statistical_choice = "PLOTS.ANALYZING_MEANS.STANDARD_ERROR"
, Polar area plot comparing the mean of each combination level of the factor variables for the distribution of the num_int_var
.
Each output is going to be a list, where each element is the result from each combination levels of the factor variables and the whole distribution of the numeric variable.
If there is no factor variable(s) then it is going to bring the calculation of the whole distribution of num_int_var
Eduardo Trujillo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.