| summarize_simulations | R Documentation |
Summarize simulated numeric variables
summarize_simulations(data, by = NULL, variables = NULL)
data |
Simulation data: a |
by |
Optional character vector of grouping column names. |
variables |
Character vector of numeric variables to summarize. |
A plain base data.frame with one row per group and variable: the
by columns (none when by is NULL), then variable, observations
(the non-missing count), mean, sd, minimum and maximum. Missing
values are left out of the statistics; a group with none left reports
NA statistics.
data <- simulate_ttest(n_a = 50, n_b = 50, mean_a = 0, mean_b = 0.6, seed = 1)
summarize_simulations(data, by = "group", variables = "outcome")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.