Usage
groupwiseMean(data, group, var, conf = 0.95, R = 5000, boot = FALSE, traditional = TRUE, normal = FALSE, basic = FALSE, percentile = FALSE, bca = FALSE, digits = 3, ...)
Arguments
data
The data frame to use.
group
The grouping variable to use. The name is in double quotes.
Multiple names are listed as a vector. (See example.)
var
The measurement variable to use. The name is in double quotes.
conf
The confidence interval to use.
R
The number of bootstrap replicates to use for bootstrapped
statistics.
boot
If TRUE
, includes the mean of the bootstrapped means.
This can be used as an estimate of the mean for
the group.
traditional
If TRUE
, includes the traditional confidence
intervals for the group means, using the t-distribution.
normal
If TRUE
, includes the normal confidence
intervals for the group means by bootstrap.
See boot.ci
. basic
If TRUE
, includes the basic confidence
intervals for the group means by bootstrap.
See boot.ci
. percentile
If TRUE
, includes the percentile confidence
intervals for the group means by bootstrap.
See boot.ci
. bca
If TRUE
, includes the BCa confidence
intervals for the group means by bootstrap.
See boot.ci
. digits
The number of significant figures to use in output.
...
Other arguments passed to the boot
function.