test.prop1 | R Documentation |
Computes a continuity-corrected z test for a single proportion in a 1-group design.
test.prop1(f, n, h)
f |
number of participants who have the attribute |
n |
sample size |
h |
population proportion under null hypothesis |
Returns a 1-row matrix. The columns are:
Estimate - ML estimate of proportion
z - z test statistic
p - p-value
Snedecor1980statpsych
test.prop1(9, 20, .2)
# Should return:
# Estimate z p
# [1,] 0.45 2.515576 0.01188379
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.