PoDDyHePoPool: Pool Function Developed for PoDDy-HePo project.

View source: R/PoDDyHePoPool.R

PoDDyHePoPoolR Documentation

Pool Function Developed for PoDDy-HePo project.

Description

It calculates prevalences for variables of interest and combines the estimates from imputed data set.

Usage

PoDDyHePoPool(imp, colName, grpVar = NULL)

Arguments

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".

Details

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.

Value

Returns a data frame ready for plotting.


zauziii/PoDDyHePo-projection documentation built on May 2, 2024, 3:48 a.m.