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 10:100)

prob

numeric: vector of probabilities for the hypothetical proportion \pi_0 (default =seq(0.05, 0.45, by=0.05))

reject

logical: should x generate a lead for the rejection of the null hypothesis (default TRUE), if equals NA then this will be ignored

alternative

character: a character string specifying the alternative hypothesis, must be one of two.sided (default), greater or less

alpha

numeric: vector of significance levels (default c(0.01, 0.05, 0.1))

norm.approx

logical: should a normal approximation be possible (size*prob*(1-prob)>9)

maxit

integer: maximal numbers of trials to find a solution (default 1000)

Value

A list with the components:

Examples

proptest_data()

[Package exams.forge version 1.0.10 Index]