Description Usage Arguments Details Value Examples
Summarize data according to a 'trial' variable using either individual confidence intervals, model-based confidence intervals ('lm') or 'min-max'
1 2 3 4 5 6 7 8 9 |
x |
should be an object of class "data.frame" |
var.names |
names of variables 'y' (response) and 'trial' variable to summarize by. |
method |
'ici' individual confidence interval, 'lm' model-based confidence interval (with typical assumptions of a linear model), 'min-max' minimum and maximum values |
level |
coverage level with default 0.95 |
order |
whether to order the summary by mean of response |
add.id |
whether to add the 'id' label |
formula |
alternative formula interface, if this is used 'var.names' is ignored. |
Custom function to summarize trial data
this function is for somewhat of narrow use case, but similar things can be accomplished using 'tidyverse' type operations. It uses 'aggregate'.
a data.frame with the indicated summaries
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.