Skip to content

Latest commit

 

History

History
142 lines (142 loc) · 11.4 KB

codebook-flier.org

File metadata and controls

142 lines (142 loc) · 11.4 KB

Codebook for datafiles

Variables grouped by type

Unit IDs

\begin{description} \item[edon] = state numeral 1:32. \item[edo] = state abbreviation (may differ from commonly used abbreviations, so that sorting them alphabetically preserves the order set by edon, eg. Chiapas is cps, not chis). \item[disn] = district identifier = edon * 100 + district numeral. \item[cab] = cabecera, district’s administrative center. \item[inegi, ife] = municipal identifier codes used by the INEGI and the IFE/INE, respectively. \item[mun] = municipality’s name. \item[emm] = unit’s identifying code. It concatenates the state’s edo abbreviation (then a hyphen) two sequential digits for the election cycle (then a period) and, depending on the level of observation, the inegi or district identifier. Using emm as sort criterion returns a state-time-unit ordering. \item[demar] = demarcación identifier = inegi + 1/100 demarcación numeral (used for Nayarit municipal elections only). \item[seccion] = voting precinct identifier = edon * 10000 + sección electoral numeral (as set by IFE/INE). \item[casilla] = polling station identifier (as set by IFE/INE). There are four types of stations, coded B for Básica, C for Contigua, E for Extraordinaria, and S for Especial.

\item[latitude, longitude] = coordinates indicating a polling booths’s north–south and east–west position in a map. Available for federal deputy and presidential casilla-level returns in the 2006, 2009, 2015, and 2018 elections. \end{description}

Temporal IDs

\begin{description} \item[yr, mo, dy] = year, month, day of the election. \item[date.el, date.in] = date of the election and start of term, respectively. \item[dextra] = dummy equal 1 for special elections (elección extraordinaria), 0 otherwise. \item[danul] = dummy equal 1 for voided elections, 0 otherwise. \end{description}

Voting

\begin{description} \item[v01, v02, …] = raw vote for candidate 1, 2, etc. \item[l01, l02, …] = label of candidate 1’s, 2’s, … party or coalition. \item[c01, c02, …] = candidate 1’s, 2’s, … name. \item[efec] = effective vote total, equal the sum of raw votes minus votes for write-in candidates minus invalid ballots. This is the denominator to compute vote shares. \item[lisnom] = unit’s total eligible voters (lista nominal). \item[nr] = votes for write-in candidates (candidatos no registrados, void in Mexican election law). \item[nul, nulos] = invalid ballots (votos nulos). \item[tot] = total raw votes. \item[win] = winner’s party or coalition. \item[ncand] = number of candidates running.

\item[ncoal] = number of candidates who ran on multi-party pre-electoral coalitions.

\item[dfake] = indicates an attempt to complete missing hegemonic era races (mostly in the 1960s and 70s) for the purpose of computing vote lags, made up of press reports and best guesses about what happened in the state’s race. \end{description}

Historical performance

\begin{description} \item[d.pan, d.pri, d.left] = first difference in the party’s federal deputy vote share from last to present election. \item[vhat.pan, vhat.pri, vhat.left] = predicted federal deputy vote share in the unit for the current election, a linear projection of the last five races. \item[bhat.pan, bhat.left] = slope estimate of the party’s autoregressive linear model for the unit. The PRI used as reference vote and has no slope estimate. \item[alphahat.pan, alphahat.pri, alphahat.left] = party’s alpha estimated for the unit. \item[betahat.pan, betahat.left] = party’s beta estimate for the unit. The PRI used as reference vote and has no beta estimate. \item[dbackward] = dummy equal 1 if prediction with autoregressive model performed backwards, 0 otherwise. \end{description}

Candidates and incumbents

\begin{description} \item[incumbent, runnerup] = winning and runner-up candidates’ names. \item[propietario, suplente] = primary and substitute candidate’s name, respectively. \item[part] = incumbent/candidate’s party or coalition. \item[part.2nd] = runner-up party or coalition. \item[mg] = winner’s margin = winner’s vote share minus runner-up’s vote share. \item[dmujer] = dummy equal 1 if candidate/incumbent is a woman, 0 otherwise. \item[race.after] = incumbent’s status in the next consecutive race. The repository’s README file describes categories and coding procedure. \item[dreran] = dummy equal 1 if incumbent ran again in the next consecutive race for the same office. \item[dreelected] = dummy equal 1 if incumbent won the next consecutive race for the same office. \item[dcarta] = dummy equal 1 if member of Congress filed a letter of intent with the chamber’s Junta to run for office again; 0 otherwise. Inapplicable before 2018. \item[lista] = candidate’s rank in senate two-member party lists. Top member of runner-up vote-getting list wins the state’s third senate seat. \item[drp] = dummy equal 1 if candidate ran for a PR seat, 0 otherwise. \item[ddied] = dummy equal 1 if incumbent died in office, 0 otherwise. \end{description}

\newpage

Variables in alphabetical order

\begin{description} \item[alphahat.pan, alphahat.pri, alphahat.left] = party’s alpha estimated for the unit. \item[betahat.pan, betahat.left] = party’s beta estimate for the unit. The PRI used as reference vote and has no beta estimate. \item[bhat.pan, bhat.left] = slope estimate of the party’s autoregressive linear model for the unit. The PRI used as reference vote and has no slope estimate. \item[c01, c02, …] = candidate 1’s, 2’s, … name. \item[cab] = cabecera, district’s administrative center. \item[casilla] = polling station identifier (as set by IFE/INE). There are four types of stations, coded B for Básica, C for Contigua, E for Extraordinaria, and S for Especial. \item[d.pan, d.pri, d.left] = first difference in the party’s federal deputy vote share from last to present election. \item[danul] = dummy equal 1 for voided elections, 0 otherwise. \item[date.el] = election date. \item[date.in] = start of term date. \item[dbackward] = dummy equal 1 if prediction with autoregressive model performed backwards, 0 otherwise. \item[dcarta] = dummy equal 1 if member of Congress filed a letter of intent with the chamber’s Junta to run for office again; 0 otherwise. Inapplicable before 2018. \item[ddied] = dummy equal 1 if incumbent died in office, 0 otherwise. \item[demar] = demarcación identifier = inegi + 1/100 demarcación numeral (used for Nayarit municipal elections only). \item[dextra] = dummy equal 1 for special elections (elección extraordinaria), 0 otherwise. \item[dfake] = indicates an attempt to complete missing hegemonic era races (mostly in the 1960s and 70s) for the purpose of computing vote lags, made up of press reports and best guesses about what happened in the state’s race. \item[disn] = district identifier = edon * 100 + district numeral. \item[dmujer] = dummy equal 1 if candidate/incumbent is a woman, 0 otherwise. \item[dreelected] = dummy equal 1 if incumbent won the next consecutive race for the same office. \item[dreran] = dummy equal 1 if incumbent ran again in the next consecutive race for the same office. \item[drp] = dummy equal 1 if candidate ran for a PR seat, 0 otherwise. \item[dy] = day of the election. \item[edo] = state abbreviation (may differ from commonly used abbreviations, so that sorting them alphabetically preserves the order set by edon, eg. Chiapas is cps, not chis). \item[edon] = state numeral 1:32. \item[efec] = effective vote total, equal the sum of raw votes minus votes for write-in candidates minus invalid ballots. This is the denominator to compute vote shares. \item[emm] = unit’s identifying code. It concatenates the state’s edo abbreviation (then a hyphen) two sequential digits for the election cycle (then a period) and, depending on the level of observation, the inegi or district identifier. Using emm as sort criterion returns a state-time-unit ordering. \item[ife] = municipal identifier codes used by the IFE/INE. \item[incumbent, runnerup] = winning and runner-up candidates’ names. \item[inegi] = municipal identifier codes used by the INEGI. \item[l01, l02, …] = label of candidate 1’s, 2’s, … party or coalition. \item[latitude] = coordinates indicating a polling booths’s north–south position in a map. Available for federal deputy and presidential casilla-level returns in the 2006, 2009, 2015, and 2018 elections. \item[lisnom] = unit’s total eligible voters (lista nominal). \item[lista] = candidate’s rank in senate two-member party lists. Top member of runner-up vote-getting list wins the state’s third senate seat. \item[longitude] = coordinates indicating a polling booths’s east–west position in a map. Available for federal deputy and presidential casilla-level returns in the 2006, 2009, 2015, and 2018 elections. \item[mg] = winner’s margin = winner’s vote share minus runner-up’s vote share. \item[mo] = month of the election. \item[mun] = municipality’s name. \item[ncand] = number of candidates running. \item[ncoal] = number of candidates who ran on multi-party pre-electoral coalitions. \item[nr] = votes for write-in candidates (candidatos no registrados, void in Mexican election law). \item[nul, nulos] = invalid ballots (votos nulos). \item[part.2nd] = runner-up party or coalition. \item[part] = incumbent/candidate’s party or coalition. \item[propietario, suplente] = primary and substitute candidate’s name, respectively. \item[race.after] = incumbent’s status in the next consecutive race. The repository’s README file describes categories and coding procedure. \item[seccion] = voting precinct identifier = edon * 10000 + sección electoral numeral (as set by IFE/INE). \item[tot] = total raw votes. \item[v01, v02, …] = raw vote for candidate 1, 2, etc. \item[vhat.pan, vhat.pri, vhat.left] = predicted federal deputy vote share in the unit for the current election, a linear projection of the last five races. \item[win] = winner’s party or coalition. \item[yr] = year of the election. \end{description}