Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.
/ hbc-prelim Public archive

Additional R scripts to produce data analysis and wrangling. You will need to run the main file here to get the manipulated dataframe that I use in the hbc-ctol repository. Here, some analysis that I did initially can also be found. The complete development environment for the stuff that you see on RPubs is also here. In memory of the late Jorge…

Notifications You must be signed in to change notification settings

dsanchezp18/hbc-prelim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Honesty by Convenience: Additional Data Wrangling and Analysis Scripts

This is the README file for the repository with the additional R scripts to produce the databases needed to replicate the paper. While the hbc-ctolalready have manipulated dataframes, this script shows all of the code required to produce those databases on your own, if you were to download them from the LAPOP AmericasBarometer website.

You must use a fork of the margins package for this to work, as for some reason there seems to be some kind of mistake in the coding of the margins package for survey-weighted generalized linear models. I've explained this here. The sad thing that I've discovered is that this fork is not perfect: it causes the computation of the APEs of any model very, very lengthy. In the future I hope there's a solution, because I'm way over my head in that.

The RMarkdown notebooks which can be seen on RPubs do not compile as a pdf, you must simply preview them so that the html files are generated, and you can see them through RStudio's viewers. This is because it uses elements from the global environment- you must run the main script if you want it to work. I'll work on this soon to avoid more issues and ensure no reproducibility issues.

To be honest, this project wasn't thought to be as reproducible as the other repository, so once again I'm open to any comments and questions in my email, [email protected].

Again, this is in honor of my grandpa. Descansa en paz abuelito.

Regards,

Daniel

About

Additional R scripts to produce data analysis and wrangling. You will need to run the main file here to get the manipulated dataframe that I use in the hbc-ctol repository. Here, some analysis that I did initially can also be found. The complete development environment for the stuff that you see on RPubs is also here. In memory of the late Jorge…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published