This function allows you to estimate the Gender Pay Wage Gap (GPG)

get_estimation_gpg(
  data = ech::toy_ech_2018,
  variable = "total_income_per_hour",
  e26 = "e26",
  by = NULL,
  ids = NULL,
  estrato = NULL,
  pesoano = "pesoano",
  stat = "media"
)

Arguments

data

data.frame

variable

Variable name of total income per hour

e26

Variable name of sex

by

data frame column

ids

Variable name of cluster

estrato

Variable name of strata

pesoano

Variable name of weights

stat

Media or Median

Value

table

Examples

# \donttest{
toy_ech_2018 <- labor_income_per_hour(data = ech::toy_ech_2018, base_month = 6, base_year = 2018)
#> Variables have been created: 
#>  	 hours_per_month (Cantidad de horas trabajadas al mes en ocupacion principal) &
#>             total_income_per_hour (Total de ingresos por trabajo por hora)
get_estimation_gpg(data = toy_ech_2018, variable = "total_income_per_hour", e26 = "e26")
#>        value
#> 1 0.01808578
# }