power.smr.test: Power calculation for Standardized Mortality Ratio (SMR) Test

Description Usage Arguments Details Value References See Also Examples

Description

Compute the power of the Standardized Mortality Ratio (SMR) Test, or determine parameters to obtain a target power.

Usage

1
2
power.smr.test(n = NULL, smr, r, sig.level = 0.05, power = NULL,
  alternative = c("two.sided", "one.sided"), tol = .Machine$double.eps^0.25)

Arguments

n

n is amount of person-time needed for study

smr

Stanardized Mortality Ratio (ie, the "ratio worth detecting")

r

death rate in the standard population

sig.level

significance level (Type I error probability)

power

power of test (1 minus Type II error probability)

alternative

one- or two-sided test. Can be abbreviated.

tol

numerical tolerance used in root finding, the default providing (at least) four significant digits. Root finding refers to uniroot, which is used to find sample size given power.

Details

Exactly one of the parameters n and power must be passed as NULL, and that parameter is determined from the others.

Value

Object of class "power.htest", a list of the arguments (including the computed one) augmented with method and note elements.

References

Newman (2001), pages 285 - 286.

See Also

smr.test

Examples

1
2
## Example 14.3
power.smr.test(smr = 1.5, r = 7283/957247, power = 0.8)

clayford/bme documentation built on May 13, 2019, 7:37 p.m.