Skip to contents

Provides a statistical significance test of the mean contrast.

Usage

# S3 method for data.frame
testMeansContrast(frame, contrast, mu=0, ...)

# S3 method for formula
testMeansContrast(formula, contrast, mu=0, ...)

# S3 method for wsm
testMeansContrast(moments, corrs, contrast, mu=0, ...)

# S3 method for bsm
testMeansContrast(moments, contrast, mu=0, ...)

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

contrast

a vector of codes for the contrast among all means

mu

a number indicating the true/hypothesized value of the mean contrast

Value

The returned frame contains the following components:

Est

the contrast among the means

SE

the standard error of the contrast

df

the degrees of the freedom for the contrast

t

the t value for the contrast

p

the p value for the contrast