View source: R/aggregateSurvey.R
aggregateSurvey | R Documentation |
Aggregate estimators from different surveys.
aggregateSurvey(data)
data |
Output from |
Estimators aggregated across surveys.
Zehang Richard Li
## Not run: data(DemoData) data(DemoMap) years <- levels(DemoData[[1]]$time) # obtain direct estimates data <- getDirectList(births = DemoData, years = years, regionVar = "region", timeVar = "time", clusterVar = "~clustid+id", ageVar = "age", weightsVar = "weights", geo.recode = NULL) # obtain maps geo <- DemoMap$geo mat <- DemoMap$Amat # Simulate hyper priors priors <- simhyper(R = 2, nsamp = 1e+05, nsamp.check = 5000, Amat = mat, only.iid = TRUE) # combine data from multiple surveys data <- aggregateSurvey(data) utils::head(data) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.