View source: R/proptest_data.R
proptest_data | R Documentation |
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
)
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 |
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
)
proptest_data()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.