test.anova1.bs: Between-subjects F statistic and eta-squared from summary...

View source: R/statpsych1.R

test.anova1.bsR Documentation

Between-subjects F statistic and eta-squared from summary information

Description

Computes the F statistic, p-value, eta-squared, and adjusted eta-squared for the main effect of Factor A in a one-way between-subjects ANOVA using the estimated group means, estimated group standard deviations, and group sample sizes.

Usage

test.anova1.bs(m, sd, n)

Arguments

m

vector of estimated group means

sd

vector of estimated group standard deviations

n

vector of group sample sizes

Value

Returns a 1-row matrix. The columns are:

  • F - F statistic for test of null hypothesis

  • dfA - degrees of freedom for between-subjects factor

  • dfE - error degrees of freedom

  • dfA - degrees of freedom for between-subjects factor

  • p - p-value for F-test

  • eta-squared - estimate of eta-squared

  • adj eta-squared - a bias adjusted estimate of eta-squared

Examples

m <- c(12.4, 8.6, 10.5)
sd <- c(3.84, 3.12, 3.48)
n <- c(20, 20, 20)
test.anova1.bs(m, sd, n)

#  Should return:
#             F dfA  dfE           p eta-squared adj eta-squared
# [1,] 5.919585   2   57 0.004614428   0.1719831       0.1429298
 


statpsych documentation built on July 9, 2023, 6:50 p.m.