merge_op: Concatenate classic and PROBIT estimates into a single...

View source: R/05-merge_op.R

merge_opR Documentation

Concatenate classic and PROBIT estimates into a single data.frame

Description

Concatenate classic and PROBIT estimates into a single data.frame

Usage

merge_op(x, y, prop2percent = FALSE)

Arguments

x

Classic estimates data.frame()

y

Probit estimates data.frame()

prop2percent

Logical. Should proportion type indicators be converted to percentage? Default is FALSE.

Value

A tibble::tibble() of combined classic and probit estimates.

Author(s)

Ernest Guevarra

Examples

indicators <- c(
  "demo", "anthro", "food", "hunger", "adl", "disability",
  "mental", "dementia", "health", "oedema", "screening", "income",
  "wash", "visual", "misc"
)

classicIndicators <- indicators[indicators != "anthro"]

## Bootstrap classic
classicEstimates <- estimate_classic(
  x = indicators.ALL, w = testPSU, 
  indicators = classicIndicators, replicates = 9
)

probitEstimates <- estimate_probit(
  x = indicators.ALL, w = testPSU, replicates = 9
)

merge_op(x = classicEstimates, y = probitEstimates)


validmeasures/oldr documentation built on Feb. 12, 2025, 7:12 a.m.