Description Usage Arguments Details Value Examples
View source: R/summary_statistics.R
Calculates the conditional mean, variance, skewness and kurtosis for continuous variables based on a set of quantiles of a given continuous variable.
1 2 |
dataset |
A data frame. Factors and logicals will be removed. |
given_var |
A named variable from your |
stats |
A vector with the choice of summary statistics you want to print. |
n_quantiles |
Number of quantiles you want to partition |
The function will return a list with one entry for each summary statistic. The
list entries themselves are matrices. Per default, only conditional means will
be displayed. You can choose the statistics you want to print with the input of
stats
. You can either name the statistics as a choice of stats =
c("mean", "var", "skewness", "kurtosis")
or as numbers stats = c(1, 2,
3, 4)
, which represent the corresponding statistics.
A list with one entry for each summary statistic.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.