evaluate_tot_con: Evaluate the quality of sum estimations for continuous...

Description Usage Arguments Value Examples

Description

evaluate_tot_con evaluates the quality of total estimations for continuous variables using the methodology created by INE Chile, which considers sample size, degrees of freedom and the coefficient of variation.

Usage

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

Arguments

tabulado

dataframe created by crear_insumos_tot_con

condicion

character with the complete condition to filter the dataframe

publicar

boolean indicating if the evaluation of the complete table must be added to the output. 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
3
4
5
6
7
library(dplyr)
hogar <- epf_personas %>%
  group_by(folio) %>%
  slice(1)

dc <- survey::svydesign(ids = ~varunit, strata = ~varstrat, data = hogar, weights = ~fe)
evaluate_tot_con(create_tot_con(gastot_hd, dominios =  zona+sexo, disenio = dc))

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