GithubHelp home page GithubHelp logo

dsanchezp18 / hbc-prelim Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 38.19 MB

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 Pazmiño (1941-2021).

HTML 95.35% R 4.65%
corruption r rmarkdown logit rstudio probit lpm economics econometrics political-economy

hbc-prelim's Introduction

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

hbc-prelim's People

Contributors

dsanchezp18 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.