Estimate Means Subsets
estimateMeansSubsets.Rd
Provides the confidence intervals for a mean contrast and the mean subsets that comprise that contrast.
Usage
# S3 method for data.frame
estimateMeansSubsets(frame, contrast, conf.level=.95, labels=NULL)
# S3 method for formula
estimateMeansSubsets(formula, contrast, conf.level=.95, labels=NULL)
# S3 method for wsm
estimateMeansSubsets(moments, corrs, contrast, conf.level=.95, labels=NULL)
# S3 method for bsm
estimateMeansSubsets(moments, contrast, conf.level=.95, labels=NULL)
Arguments
- frame
a set of (non-empty) numeric vectors of data values
- formula
a formula of the form
lhs ~ rhs
wherelhs
is a numeric variable giving the data values andrhs
a factor giving the corresponding groups- moments
a matrix/frame of descriptive/summary statistics
- corrs
a matrix/frame of correlations among the measures
- contrast
a vector of codes for the contrast among all means
- conf.level
confidence level of the interval
- labels
custom labels for the subsets
Value
The returned frame contains the following components:
- Est
the subset means for the variables or groups and the difference
- SE
the standard errors of the subset means for the variables or groups and the difference
- df
the degrees of freedom of the subsets for the variables or groups and the difference
- LL
the lower limit of the confidence interval of the subset means and the difference
- UL
the upper limit of the confidence interval of the subset means and the difference