Learn R Programming

oldr (version 0.2.3)

report_op_table: Create table and report chunk of RAM-OP results

Description

Create table and report chunk of RAM-OP results

Usage

report_op_table(estimates, filename = paste(tempdir(), "ramOP", sep = "/"))

report_op_demo(output_format = c("html", "docx", "odt", "pdf"))

report_op_food(output_format = c("html", "docx", "odt", "pdf"))

report_op_hunger(output_format = c("html", "docx", "odt", "pdf"))

report_op_disability(output_format = c("html", "docx", "odt", "pdf"))

report_op_adl(output_format = c("html", "docx", "odt", "pdf"))

report_op_mental(output_format = c("html", "docx", "odt", "pdf"))

report_op_dementia(output_format = c("html", "docx", "odt", "pdf"))

report_op_health(output_format = c("html", "docx", "odt", "pdf"))

report_op_oedema(output_format = c("html", "docx", "odt", "pdf"))

report_op_anthro(output_format = c("html", "docx", "odt", "pdf"))

report_op_screen(output_format = c("html", "docx", "odt", "pdf"))

report_op_visual(output_format = c("html", "docx", "odt", "pdf"))

report_op_income(output_format = c("html", "docx", "odt", "pdf"))

report_op_wash(output_format = c("html", "docx", "odt", "pdf"))

report_op_misc(output_format = c("html", "docx", "odt", "pdf"))

Value

Report of tabulated estimated results saved in CSV format in current working directory or in the specified path or a reporting chunk for specific indicators.

Arguments

estimates

A data.frame of RAM-OP results produced by merge_op().

filename

Prefix to append to report output filename. Can be specified as a path to a specific directory where to output tabular results CSV file. Defaults to a path to a temporary directory with a filename starting with ramOP.

output_format

Either "html", "docx", "odt", or "pdf". Defaults to "html".

Author

Mark Myatt and Ernest Guevarra

Examples

Run this code
##
x <- estimate_classic(
  x = create_op(testSVY), w = testPSU, replicates = 9
)

y <- estimate_probit(
  x = create_op(testSVY), w = testPSU, replicates = 9
)

z <- merge_op(x, y, prop2percent = TRUE)
report_op_table(z)

report_op_demo()
report_op_hunger()
report_op_food()
report_op_disability()

Run the code above in your browser using DataLab