View source: R/PoDDyHePoPool.R
PoDDyHePoPool | R Documentation |
It calculates prevalences for variables of interest and combines the estimates from imputed data set.
PoDDyHePoPool(imp, colName, grpVar = NULL)
imp |
Complete data (mids object) from PoDDyHePoProjeciton(). |
colName |
A variable whose prevalences are to be estimated. |
grpVar |
Grouping variable. The default is NULL. In our case, "sex" used as grouping variable, that is grpVar = "sex". |
Description of PoDDyHePoPool()
It is able to detect separated variable and returns a data frame with Year, Sex, estimated prevalence (EST), CI_LOWER and CI_UPPER.
Returns a data frame ready for plotting.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.