proptest_data {exams.forge} | R Documentation |
Binomial Test Data Creation
Description
Creates data for a binomial test based on the properties for the test.
Usage
proptest_data(
size = 10:100,
prob = seq(0.05, 0.45, by = 0.05),
reject = TRUE,
alternative = c("two.sided", "less", "greater"),
alpha = c(0.01, 0.05, 0.1),
norm.approx = NA,
maxit = 1000
)
prop_binomtest_data(
size = 10:100,
prob = seq(0.05, 0.45, by = 0.05),
reject = TRUE,
alternative = c("two.sided", "less", "greater"),
alpha = c(0.01, 0.05, 0.1),
norm.approx = NA,
maxit = 1000
)
dbinomtest(
size = 10:100,
prob = seq(0.05, 0.45, by = 0.05),
reject = TRUE,
alternative = c("two.sided", "less", "greater"),
alpha = c(0.01, 0.05, 0.1),
norm.approx = NA,
maxit = 1000
)
Arguments
size |
numeric: vector of sample sizes (default |
prob |
numeric: vector of probabilities for the hypothetical proportion |
reject |
logical: should |
alternative |
character: a character string specifying the alternative hypothesis, must be one of |
alpha |
numeric: vector of significance levels (default |
norm.approx |
logical: should a normal approximation be possible ( |
maxit |
integer: maximal numbers of trials to find a solution (default |
Value
A list with the components:
-
pi0
hypothetical proportion -
x
counts of successes in the sample -
n
sample size -
alpha
significance level -
alternative
specifying the alternative hypothesis (eithertwo.sided
,greater
orless
)
Examples
proptest_data()