search for: getsmr

Displaying 1 result from an estimated 1 matches for "getsmr".

Did you mean: getshr
2011 Jun 27
0
OpenBUGS and glmmBUGS package
...UGS package with OpenBUGS under Linux. Here is a short list of code I modified from the diseasemapping package document: ---------------------------------------- library(diseasemapping) data(popdata) data(casedata) model = getRates(casedata, popdata, ~age*sex, breaks=seq(0, 90, by=10) ) ontario = getSMR(popdata,model, casedata) spplot(ontario, 'SMR') library(spdep) popDataAdjMat = poly2nb(ontario, ontario[["CSDUID"]]) library(glmmBUGS) forBugs = glmmBUGS(formula=observed + logExpected ~ 1, effects="CSDUID", family="poisson", spatial=popDataAdjMat, data=on...