mergeBugsData-methods {glmmBUGS} | R Documentation |
merge the result from bugs function
## S4 method for signature 'data.frame' mergeBugsData( x, bugsSummary, by.x = NULL, newcol = "mean", ... ) ## S4 method for signature 'SpatialPolygonsDataFrame' mergeBugsData( x, bugsSummary, by.x = NULL, newcol = "mean", ... )
x |
spatial polygon object i.e population data set (popdata) |
bugsSummary |
posterior distribution result from summaryChain function |
by.x |
the common term from the spatial polygon object and the bugs function result |
newcol |
the summary statistic that to be merged back to the data frame |
... |
additional arguments |
Patrick Brown
if(require('diseasemapping')){ data('popdata') newdata = c("3560102"=2, "3560104"=3) popdatatry = mergeBugsData(popdata, newdata, by.x="CSDUID") }