sample.size.count.poisson.onesample.approximate: Sample Size - Single Sample Poisson Test

View source: R/sample.size.count.poisson.onesample.approximate.R

sample.size.count.poisson.onesample.approximateR Documentation

Sample Size - Single Sample Poisson Test

Description

Sample size calculation utilizes the square root transformation (approximate sample size/power).

Usage

sample.size.count.poisson.onesample.approximate(
  lambda.null.hypothesis,
  lambda.alternative.hypothesis,
  alpha = 0.05,
  beta = 0.1,
  alternative = c("two.sided", "less", "greater"),
  details = TRUE,
  power.from.actual = F
)

Arguments

lambda.null.hypothesis

Scalar - null hypothesis lambda parameter

lambda.alternative.hypothesis

Scalar - alternative hypothesis lambda parameter

alpha

Scalar - Type I error rate

beta

Scalar - Type II error rate

alternative

Scalar (character) - alternative hypothesis

details

Logical - Return calculation details (default) or return only sample size (details = FALSE)

power.from.actual

Logical - If true, return 1-beta, if false, calculate power using calculated sample size.

Value

A data frame with details about the calculation or a single value with sample size (details = F).


burrm/lolcat documentation built on Aug. 15, 2024, 6:16 p.m.