powerPoisson {powerMediation} | R Documentation |
Power calculation for simple Poisson regression
Description
Power calculation for simple Poisson regression. Assume the predictor is normally distributed.
Usage
powerPoisson(
beta0,
beta1,
mu.x1,
sigma2.x1,
mu.T = 1,
phi = 1,
alpha = 0.05,
N = 50)
Arguments
beta0 |
intercept |
beta1 |
slope |
mu.x1 |
mean of the predictor |
sigma2.x1 |
variance of the predictor |
mu.T |
mean exposure time |
phi |
a measure of over-dispersion |
alpha |
type I error rate |
N |
toal sample size |
Details
The simple Poisson regression has the following form:
where
We are interested in testing the null hypothesis
versus the alternative hypothesis
.
Assume
is normally distributed with mean
and variance
.
The sample size calculation formula derived by Signorini (1991) is
where is the over-dispersion parameter
(
),
is the type I error rate,
is the estimate of the slope
,
is the intercept,
is the mean exposure time,
is the
-th lower percentile of
the standard normal distribution, and
is the variance of the estimate
given the true slope
.
The variances are
and
Value
power
Note
The test is a two-sided test. For one-sided tests, please double the
significance level. For example, you can set alpha=0.10
to obtain one-sided test at 5% significance level.
Author(s)
Weiliang Qiu <stwxq@channing.harvard.edu>
References
Signorini D.F. (1991). Sample size for Poisson regression. Biometrika. Vol.78. no.2, pp. 446-50
See Also
See Also as sizePoisson
Examples
# power = 0.8090542
print(powerPoisson(
beta0 = 0.1,
beta1 = 0.5,
mu.x1 = 0,
sigma2.x1 = 1,
mu.T = 1,
phi = 1,
alpha = 0.05,
N = 28))