test.prop.bs | R Documentation |
Computes a Pearson chi-square test for equal population proportions for a dichotomous response variable in a one-factor between-subjects design.
test.prop.bs(f, n)
f |
vector of frequency counts of participants who have the attribute |
n |
vector of sample sizes |
Returns a 1-row matrix. The columns are:
Chi-square - chi-square test statistic
df - degrees of freedom
p - p-value
Fleiss2003statpsych
f <- c(35, 30, 15)
n <- c(50, 50, 50)
test.prop.bs (f, n)
# Should return:
# Chi-square df p
# 17.41071 2 0.0001656958
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.