Creates data for a binomial test based on the properties for the test.
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
)
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 (either two.sided, greater or less)
numeric: vector of sample sizes (default 10:100)
numeric: vector of probabilities for the hypothetical proportion \(\pi_0\) (default =seq(0.05, 0.45, by=0.05))
logical: should x generate a lead for the rejection of the null hypothesis (default TRUE), if equals NA then this will be ignored
character: a character string specifying the alternative hypothesis, must be one of two.sided (default), greater or less
numeric: vector of significance levels (default c(0.01, 0.05, 0.1))
logical: should a normal approximation be possible (\(size*prob*(1-prob)>9\))
integer: maximal numbers of trials to find a solution (default 1000)