Skip to contents

Provides the statistical significances tests for the means and mean difference of a specified comparison.

Usage

# S3 method for data.frame
testMeansComparison(frame, ...)

# S3 method for formula
testMeansComparison(formula, ...)

# S3 method for wsm
testMeansComparison(moments, corrs, ...)

# S3 method for bsm
testMeansComparison(moments, ...)

Arguments

frame

a set of (non-empty) numeric vectors of data values

formula

a formula of the form lhs ~ rhs where lhs is a numeric variable giving the data values and rhs a factor giving the corresponding groups

moments

a matrix/frame of descriptive/summary statistics

corrs

a matrix/frame of correlations among the measures

Details

This function compares two groups or variables. As such, the supplied factor or table of summary statistics should contain only two groups or two variables.

Value

The returned frame contains the following components:

Est

the means for the variables or groups and the difference

SE

the standard Errors for the variables or groups and the difference

df

the degrees of freedom for the variables or groups and the difference

t

the t value for the means and the difference

p

the p value for the means and the difference