Learn R Programming

oldr (version 0.2.3)

merge_op: 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)

Value

A data.frame() of combined classic and probit estimates.

Arguments

x

Classic estimates data frame

y

Probit estimates data frame

prop2percent

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

Author

Ernest Guevarra

Examples

Run this code
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)

Run the code above in your browser using DataLab