samplesizeOneRateExact: Sample Size for Poisson One-Sample Exact Test

View source: R/RcppExports.R

samplesizeOneRateExactR Documentation

Sample Size for Poisson One-Sample Exact Test

Description

Obtains the sample size for Poisson one-sample exact test.

Usage

samplesizeOneRateExact(
  beta = 0.2,
  lambdaH0 = NA_real_,
  lambda = NA_real_,
  D = 1,
  alpha = 0.025
)

Arguments

beta

The type II error.

lambdaH0

The Poisson rate under the null hypothesis.

lambda

The Poisson rate under the alternative hypothesis.

D

The average exposure per subject.

alpha

The one-sided significance level. Defaults to 0.025.

Value

A data frame containing the critical value of the number of events for rejecting the null hypothesis, the attained type I error, the power for the exact test, the sample size, the Poisson rates under the null and alternative hypotheses, the average exposure, and the direction of the alternative.

Author(s)

Kaifeng Lu, kaifenglu@gmail.com

Examples

samplesizeOneRateExact(beta = 0.2, lambdaH0 = 0.2, lambda = 0.3,
                       D = 1, alpha = 0.05)


lrstat documentation built on Oct. 18, 2024, 9:06 a.m.