Package: incomeLato 0.1.1

incomeLato: Relative Income Position for 'Latinobarometro' Respondents from a Frozen Imputation Model
Applies a frozen multinomial model (version 'v1.5') that predicts each respondent's relative income position within their country and survey year -- the probabilities of belonging to the bottom 50 percent, the middle 40 percent and the top 10 percent -- to 'Latinobarometro' microdata that the user downloads from the official source. The model was trained on national household surveys and validated against 'LAPOP AmericasBarometer' data for 15 Latin American countries. It uses five predictors (sex, age, education, car ownership, washing machine ownership) plus a country effect, and the package harmonizes them across waves 1995-2024 through a manually curated crosswalk. The package ships only model parameters and variable-name metadata: it contains no survey microdata and no statistics computed from it. Probabilities are meant as continuous weights for aggregate analysis, not for classifying individuals.
Authors:
incomeLato_0.1.1.tar.gz
incomeLato_0.1.1.zip(r-4.7-any)incomeLato_0.1.1.zip(r-4.6-any)incomeLato_0.1.1.zip(r-4.5-any)
incomeLato_0.1.1.tgz(r-4.6-any)incomeLato_0.1.1.tgz(r-4.5-any)
incomeLato_0.1.1.tar.gz(r-4.7-any)incomeLato_0.1.1.tar.gz(r-4.6-any)
incomeLato_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
incomeLato/json (API)
| # Install 'incomeLato' in R: |
| install.packages('incomeLato', repos = c('https://mrbpedro.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/mrbpedro/incomelato/issues
incomelatin-americalatinobarometrosurvey-data
Last updated from:af2f999da6. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 159 | ||
| source / vignettes | OK | 230 | ||
| linux-release | OK | 179 | ||
| macos-release | OK | 113 | ||
| macos-oldrel | OK | 98 | ||
| windows-devel | OK | 103 | ||
| windows-release | OK | 96 | ||
| windows-oldrel | OK | 104 | ||
| wasm-release | OK | 121 |
Exports:educ3_validated_yearsharmonize_core_predictorsharmonize_educ3_latinobarometroincome_latopredict_latinobarometro_incomeprepare_latinobarometro_income_inputssimulate_latinobarometro_wave
Dependencies:bitbit64clicliprcodetoolscpp11crayondplyrforcatsforeachgenericsglmnetgluehavenhmsiteratorslatticelifecyclemagrittrMatrixpillarpkgconfigprettyunitsprogressR6RcppRcppEigenreadrrlangshapesurvivaltibbletidyselecttzdbutf8vctrsvroomwithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| List the years with validated education logic | educ3_validated_years |
| Harmonize the sex/age/car/washing machine/country/weight predictors for one wave | harmonize_core_predictors |
| Harmonize educ3_final for one Latinobarometro wave | harmonize_educ3_latinobarometro |
| Apply the v1.5 income model to Latinobarometro microdata (shortcut) | income_lato |
| Apply the v1.5 income model to the prepared data | predict_latinobarometro_income |
| Prepare the income predictors from the user's raw microdata | prepare_latinobarometro_income_inputs |
| Generate a synthetic data.frame with the structure of a Latinobarometro wave | simulate_latinobarometro_wave |