ci.slope.prop.bs | R Documentation |
Computes a test statistic and an adjusted Wald confidence interval for the population slope of proportions in a one-factor experimental design with a quantitative between-subjects factor.
ci.slope.prop.bs(alpha, f, n, x)
alpha |
alpha level for 1-alpha confidence |
f |
vector of frequency counts of participants who have the attribute |
n |
vector of sample sizes |
x |
vector of quantitative factor values |
Returns a 1-row matrix. The columns are:
Estimate - adjusted slope estimate
SE - adjusted standard error
z - z test statistic
p - two-sided p-value
LL - lower limit of the adjusted Wald confidence interval
UL - upper limit of the adjusted Wald confidence interval
Price2004statpsych
f <- c(14, 27, 38)
n <- c(100, 100, 100)
x <- c(10, 20, 40)
ci.slope.prop.bs(.05, f, n, x)
# Should return:
# Estimate SE z p LL UL
# 0.007542293 0.002016793 3.739746 0.000184206 0.003589452 0.01149513
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.