saeplus_addbenchmark: A simple function to include benchmarked results to preferred...

View source: R/saeplus_addbenchmark.R

saeplus_addbenchmarkR Documentation

A simple function to include benchmarked results to preferred file

Description

This function is built to take the results of the benchmarked poverty rates and use them to replace the original ebp estimates that were written to an xlsx file using the SAEplus::emdi_writeexcel() or emdi::write.excel() functions

Usage

saeplus_addbenchmark(
  ebp_obj = ginemdi_model2,
  csv_file = "data/emdi_results2.csv"
)

Arguments

ebp_obj

an object of class "ebp"

csv_file

full file name (including path) where results will be outputted

bm_obj

an object of class data.table / data.frame which is the result of benchmarking the poverty rates (usually the output of the function saeplus_calibratepovrate())

bm_unitid

the id variable within the bm_obj object argument


SSA-Statistical-Team-Projects/SAEplus documentation built on Aug. 24, 2022, 11:26 a.m.