Political campaign donations in Chile

Today in Chile, there is a huge concern of how (illegal/irregular) campaign donations buy political access and favourable consideration in legislation. Everything started with PENTAGATE scandal: In 2015, the national prosecutor filed charges for hundreds of fake invoices, evaded taxes, falsified statements and illegally financing the electoral campaigns of right-wing parties candidates against the Chilean financial holding company Penta Group (Here is the coverage done by the New York Times).

Web scraping using python

I made a brief Python code for collecting the data and generating a database of the votes from the Chilean Senate. This is known as Web Scraping where a process automatically extracts data from the website. To do this, I used the Python library: Beautiful Soup. #get_votacion_senadores #Author: Fernando Greve #This code scraps the Chilean Senate Webpage and constructs a database with #votes of every law project available online. In particular, the code #automaticatly generates a folder for every project and save a csv with votes #and other csv with some project details.

Shiny interactive web app

Shiny is a R package that helps to make interactive web applications. Thus, I used it to show the Senate Votes in Chile. The novelty of this Web application is that it gives the opportunity to have the votes of a particular senator for a certain amount of time. This application is on the next link: Shiny-App. #server.R library("dplyr") library("shiny") load("VotosSenado.Rda") function(input, output) { datasetInput <- reactive({ switch(input$dataset, "TODOS" = head(select(filter(VotosSenado, grepl(input$txt, Tema, ignore.

Chile dinamic choropleth d3

.land { fill: #222; } .county-boundary { fill: none; stroke: #fff; stroke-width: .5px; } .state-boundary { fill: none; stroke: #fff; } .border { stroke: #000; fill: none; } .graticule { fill: none; stroke: #777; stroke-width: .5px; stroke-opacity: .5; }

//var width = 300, height = 700; var width = $(“#d3div”).width(), height = 700; var projection = d3.geo.transverseMercatorChile() .translate([width / 2, height / 2]); var path = d3.

worldmap choropleth d3

body { font-family: “Helvetica Neue”, Helvetica, Arial, sans-serif; width: 960px; height: 500px; position: relative; } #canvas { } #canvas-svg { } .land { fill: #222; } .boundary { fill: none; stroke: #fff; stroke-width: 1px; } #tooltip-container { position: absolute; background-color: #fff; color: #000; padding: 10px; border: 1px solid; display: none; } .tooltip_key { font-weight: bold; } .tooltip_value { margin-left: 20px; float: right; }


Weighted histogram with diferent classes of observations

Analysing the distribution of the firm’s productivities within an economy helps to observe the efficiency of that market. For instance, an economy with great dispertion in its productivity distribution could be less competitive than a market with a lower level of dispertion. In other words, competitive markets tend to show firms with similar productivities. In this analysis I supposed that all firms are similar.

Getting started with the Academic framework for Hugo

Create a beautifully simple personal or academic website in under 10 minutes.

Customizing the homepage with widgets

Enable/disable and configure widgets to customize your homepage.

Managing content

This is a brief guide to managing content with the Academic framework. Content can include publications, projects, talks, and news/blog articles. After you have read this guide about creating and managing content, you may also be interested to learn about writing content with Markdown, LaTeX, and Shortcodes.

Writing content with Markdown, LaTeX, and Shortcodes

Content can be written using Markdown, LaTeX math, and Hugo Shortcodes. Additionally, HTML may be used for advanced formatting. This article gives an overview of the most common formatting options.

UpDog logo  Proudly hosted with UpDog.