get_estimation_ratio: This function allows you to estimate ratio variables at...

get_estimation_ratioR Documentation

This function allows you to estimate ratio variables at universe level.

Description

This function allows you to estimate ratio variables at universe level.

Usage

get_estimation_ratio(
  data = ech::toy_ech_2018,
  variable.x = NULL,
  variable.y = NULL,
  by.x = NULL,
  by.y = NULL,
  domain = NULL,
  level = NULL,
  ids = NULL,
  numero = "numero",
  estrato = NULL,
  pesoano = "pesoano",
  name = "estimacion"
)

Arguments

data

data frame with ECH microdata

variable.x

data frame column to estimate

variable.y

data frame column to estimate

by.x

data frame column

by.y

data frame column

domain

subpopulation reference setted as character expresion of logical evaluation

level

is household ("h") or individual ("i")

ids

Variable name of cluster

numero

Variable name of household id

estrato

Variable name of strata

pesoano

Variable name of weights

name

name for the estimation new column

Details

Disclaimer: This script is not an official INE product. Aviso: El script no es un producto oficial de INE.

Value

table

See Also

Other estimation: get_estimation_gini(), get_estimation_gpg(), get_estimation_mean(), get_estimation_median(), get_estimation_qsr(), get_estimation_total(), set_design()

Examples


toy_ech_2018 <- employment(data = ech::toy_ech_2018, pobpcoac = "pobpcoac")
get_estimation_ratio(data = toy_ech_2018, variable.x = "po", variable.y = "pea", level = "i")


calcita/ech documentation built on March 2, 2024, 7:54 a.m.