ss.fromdata.pois(xbar0, xbar1, m0, m1, ss.ratio = 1, sig.level = 0.05, real.power = 0.8, nominal.power = NULL, alternative = c("two.sided", "one.sided"), MINN0 = 1, MAXN0 = 10^5)
xbar0
and xbar1
) come from existing data that is assumed to also follow the
same Poisson distributions. The method is inherently conservative, so that with a nominal power of .77 the real power
will be about .80, and a nominal power of .89 the real power will be about .90. Other values of nominal power are
allowed, but only real powers of .80 or .90 are allowed.
If mu0 and mu1 are the means from the two groups,
the one-sided tests are designed to test either
$H0: mu0 <= mu1$="" vs.="" $h1:="" mu0=""> mu1$ or to test
$H0: mu0 >= mu1 $ vs.
$H1: mu0 < mu1$.
We estimate $mu0$ and $mu1$ with
$mu0hat=xbar0 + 1/(2m0)$
and
$mu1hat=xbar1 + 1/(2m1)$.
The choice of hypotheses is determined by the value of $mu0hat$
and $mu1hat$;
if $mu0hat > mu1hat$ then the former hypotheses are tested, otherwise the latter are.
See Fay, Halloran and Follmann (2007) for details.
=>ss.fromdata.nvar
,
ss.fromdata.neff
,
ss.nonadh
,
uniroot.integer
ss.fromdata.pois(1.65,.88,23,25)
Run the code above in your browser using DataLab