evaluate_mean: Evaluate the quality of mean estimations

Description Usage Arguments Value Examples

View source: R/revision_calidad.R

Description

evaluar_calidad_media evauates the quality of mean estimation using the methodology created by INE Chile, which considers sample size, degrees of freedom and coeficient of variation.

Usage

1
evaluate_mean(tabulado, condicion = NULL, publicar = FALSE)

Arguments

tabulado

dataframe created by crear_insumos_media

condicion

character with the complete condition to filter the dataframe

publicar

boolean indicating if the evaluation of the complete table must be added. If it is TRUE, the function adds a new column to the dataframe

Value

dataframe with all the columns included in the input table, plus a new column containing a label indicating the evaluation of each estimation: reliable, bit reliable or unreliable

Examples

1
2
dc <- survey::svydesign(ids = ~varunit, strata = ~varstrat, data = epf_personas, weights = ~fe)
evaluate_mean(create_mean(gastot_hd, dominios = zona+sexo, disenio = dc))

Klauslehmann/calidad documentation built on May 1, 2021, 6:35 a.m.