Implements the normal approximation for a test on rates.
The reponse rate in the control group,
, has to be specified by
rate_control.
The null hypothesis is:
,
where denotes the response rate
in the invervention group.
It is tested against the alternative
.
The test statistic is given as
,
where denotes the mean between
and
in the two-armed case,
and in the one-armed case.#'
All priors have to be defined for the rate difference
.
Usage
Binomial(rate_control, two_armed = TRUE)
# S4 method for Binomial
quantile(x, probs, n, theta, ...)
# S4 method for Binomial,numeric
simulate(object, nsim, n, theta, seed = NULL, ...)
Arguments
rate_control
assumed response rate in control group
two_armed
logical indicating if a two-armed trial is regarded
x
outcome
probs
vector of probabilities
n
sample size
theta
distribution parameter
...
further optional arguments
object
object of class Binomial
nsim
number of simulation runs
seed
random seed
Slots
rate_control
cf. parameter 'rate_control'
Details
Note that simulate for class Binomial simulates the
normal approximation of the test statistic.