test.prop.bs: Hypothesis test of equal proportions in a between-subjects...

View source: R/statpsych3.R

test.prop.bsR Documentation

Hypothesis test of equal proportions in a between-subjects design

Description

Computes a Pearson chi-square test for equal population proportions for a dichotomous response variable in a one-factor between-subjects design.

For more details, see Section 2.13 of Bonett (2021, Volume 3)

Usage

test.prop.bs(f, n)

Arguments

f

vector of frequency counts of participants who have the attribute

n

vector of sample sizes

Value

Returns a 1-row matrix. The columns are:

  • Chi-square - chi-square test statistic

  • df - degrees of freedom

  • p - p-value

References

\insertRef

Fleiss2003statpsych

\insertRef

Bonett2021statpsych

Examples

f <- c(111, 118, 132)
n <- c(200, 200, 200)
test.prop.bs (f, n)

# Should return:
# Chi-square df       p
#     4.7706  2 0.09206



statpsych documentation built on Jan. 13, 2026, 1:07 a.m.