onearm: One Sample Binomial Design

View source: R/phase2.R

onearmR Documentation

One Sample Binomial Design

Description

Determines the critical value and power for an exact one sample binomial test

Usage

onearm(n, p0, pa, alpha = 0.1)

Arguments

n

sample size

p0

The null response probability

pa

The alternative response probability

alpha

The one-sided type I error rate

Details

Let R be the number of responses. If p0<pa, determines the smallest critical value r such that P(R>=r|p0)<=alpha, and computes P(R>=r|p) for p=p0,pa. If p0>pa, similar calculations are done for rejecting in the opposite tail.

Value

A vector giving the critical value and the rejection probabilities under the null and alternative.

See Also

bin1samp

Examples

onearm(30, 0.1, 0.3)


raredd/desmon documentation built on May 7, 2024, 3:46 p.m.