donner {aod} | R Documentation |
Test of Proportion Homogeneity using Donner's Adjustment
Description
Tests the homogeneity of proportions between groups (H0:
) from clustered
binomial data
using the adjusted
statistic proposed by Donner (1989).
Usage
donner(formula = NULL, response = NULL,
weights = NULL, group = NULL, data, C = NULL)
Arguments
formula |
An optional formula where the left-hand side is either a matrix of the form |
response |
An optional argument indicating either a matrix of the form |
weights |
An optional argument used when the left-hand side of |
group |
An optional argument only used when |
data |
A data frame containing the response ( |
C |
If not NULL, a numerical vector of |
Details
The statistic is adjusted with the correction factor
computed in each group
. The test statistic is given by:
where ,
is a scalar depending on the cluster sizes,
and
is the ANOVA estimate of the intra-cluster correlation, assumed common
across groups (see Donner, 1989 or Donner et al., 1994). The statistic is compared to a
distribution with
degrees of freedom. Fixed correction factors can be specified
with the argument
C
.
Value
An object of formal class “drs”: see drs-class
for details. The slot tab
provides the proportion of successes and the correction factor for each group.
Author(s)
Matthieu Lesnoff matthieu.lesnoff@cirad.fr, Renaud Lancelot renaud.lancelot@cirad.fr
References
Donner, A., 1989. Statistical methods in ophthalmology: an adjusted chi-squared approach. Biometrics 45, 605-611.
Donner, A., 1993. The comparison of proportions in the presence of litter effects. Prev. Vet. Med. 18, 17-26.
Donner, A., Eliasziw, M., Klar, N., 1994. A comparison of methods for testing homogeneity of proportions in
teratologic studies. Stat. Med. 13, 1253-1264.
See Also
chisq.test
, raoscott
, drs-class
Examples
data(rats)
donner(formula = cbind(y, n - y) ~ group, data = rats)
donner(formula = y/n ~ group, weights = n, data = rats)
donner(response = cbind(y, n - y), group = group, data = rats)
donner(response = y/n, weights = n, group = group, data = rats)
# standard test
donner(cbind(y, n - y) ~ group, data = rats, C = c(1, 1))
data(antibio)
donner(cbind(y, n - y) ~ treatment, data = antibio)