The returned object is a tibble data frame with the additional class
"statsExpressions". Unlike the hypothesis-testing functions, this one returns
one row per level of the grouping variable x, describing the distribution
of y within that level. The columns are:
the grouping variable (named after x, e.g. Species)
the requested centrality estimate (named after y, e.g. Sepal.Length):
the mean (type = "parametric"), median ("nonparametric"), trimmed mean
("robust"), or MAP estimate ("bayes")
std.dev: standard deviation (for "parametric" and "robust")
mad: median absolute deviation (for "nonparametric")
iqr: interquartile range
conf.low, conf.high: bounds of the confidence/credible interval for the
centrality estimate
min, max: minimum and maximum values
skewness, kurtosis: shape statistics of the distribution
n.obs: number of non-missing observations
missing.obs: number of missing observations after filtering (always
0, since rows with missing x or y are removed before summarizing)
expression: a list-column of pre-formatted
plotmath expressions (each
element is a language object, not a character string) containing the
centrality estimate, ready to be used in {ggplot2}
n.expression: a label combining the group name and its sample size (e.g.
"setosa\n(n = 50)"), useful as an axis or facet label
The exact dispersion column depends on the type of analysis (std.dev vs
mad; neither is returned for "bayes"), and datawizard::describe_distribution() is used internally to compute
these indices.
For more examples, see the data frame output vignette and the Return value schema article.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.