This routine generates multiple social indicators at the municipal level for household surveys from 2011 to 2018.

Household surveys are created annually by the General Directorate of Statistics and Census. The survey allows generating indicators at the departmental level, however, there are 50 municipalities that are self-represented. In other words, the sample in these municipalities is large enough to be representative of themselves.

El Salvador has 262 municipalities, however in these 50 municipalities lives more than 65% of the population.

GINI and the MEDIAN INCOME

I am interested in calculating the GINI and the median income in each municipality.

The survey calculates a frequency weighting for each respondent.

I have created a function that takes into account the frequency of each respondent. In addition, the GINI is calculated at the household income level and at the individual level.

Creating a routine for every survey

The next code create multiples social indicators for each municipio

Printing output data

Analyzing the data

1. Multiple scatter plots to look for correlations

2. How some indicators have changed during time

3. Observing correlation between poverty and economic classification of work in the municipalities in 2018

Reading csv file that contains more information of the municipalities as name and department

This information is not found in household surveys.