eBayes | R Documentation |
The computes empirical Bayes estimates of relative risk of study region with n
areas, given observed and expected numbers of counts of disease and covariate information.
eBayes(Y, E, Xmat = NULL)
Y |
a length |
E |
a length |
Xmat |
|
A list with 5 elements:
RR |
the ecological relative risk posterior mean estimates |
RRmed |
the ecological relative risk posterior median estimates |
beta |
the MLE's of the regression coefficients |
alpha |
the MLE of negative binomial dispersion parameter |
SMR |
the standardized mortality/morbidity ratio Y/E |
Clayton D. and Kaldor J. (1987) Empirical Bayes estimates of age-standardized relative risks for use in disease mapping. Biometrics, 43, 671–681
data(scotland) data <- scotland$data x <- data$AFF Xmat <- cbind(x,x^2) results <- eBayes(data$cases,data$expected,Xmat) scotland.map <- scotland$spatial.polygon mapvariable(results$RR, scotland.map)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.