Description Usage Arguments Details Examples
Does a tidy calculation of basic stats. "Tidy" means that qstats()
takes a
data table as input and produces a data table as output. The output will have one column
for each of the statistics requested as well as columns for any grouping variables.
1 |
formula |
indicating which variables are to be used. See details. |
data |
the data table containing the variables |
... |
the names of the statistics desired. Default: the favorite
statistics from |
.level |
the confidence or coverage level (default: 0.95) |
.wide |
format the output in a nice way for human reading. The default is to output a tidy data table with one row for each of the groups defined by the categorical variables on the right side of the formula. |
Use a one-sided formula if there is only one quantitative variable involved
or a two-sided formula with the quantitative variable on the left
and categorical variables on the right. Note that qstats()
uses only the formula to define
splitting into groups and ignores any grouping imposed by dplyr::group_by()
.
It is unlike dplyr::summarise()
in that respect. QUESTION: Should this be configured to work
both with group_by()
and the formula, using all the variables mentioned.
Available statistics:
min
, Q1
, median
, mean
, Q3
, max
, sd
, n
, missing
. When no specific statistics are named, these will be the output.
Intervals giving the high and low values:
coverage
: covers the central 95
mean.conf
: confidence interval on the mean
median.conf
: confidence interval on the median
sd.conf
: confidence interval on the standard deviation
Just one end of the interval, use a name like sd.conf.low
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.