process_batch_election_day: Functions for estimating on election day

Description Usage Arguments See Also

Description

These functions are to be used on election day (July 1st, 2018), for estimating national election results and Governor election results in the States of Chiapas, Guanajuato and Morelos. The functions can be used within an R session but were created to be called autamtically by a Python script. The output was creted to feed INE's system.

Usage

1
2
3
4
5
process_batch(path_name, file_name, path_out, path_results, team = "default",
  n_iter = 4000, n_burnin = 3000, n_chains = 1, parallel = TRUE)

process_batch_stan(path_name, file_name, path_out, path_results,
  team = "default", n_iter = 500, n_warmup = 200, n_chains = 1)

Arguments

path_name

Path to a file that will be used for estimation. On election day it will be a file with a subset of the sample.

file_name

Name of the file with the data.

path_out

Path to directory where diagnostics, partial results, and data will be saved. Data is included in case there is need of additional checks.

path_results

Path to the directory where partial results will be saved.

team

Name of team running the model, to be used in INE reports.

n_iter

Number of iterations, burnin size and chains. to be used in jags.

n_burnin

Number of iterations, burnin size and chains. to be used in jags.

n_chains

Number of iterations, burnin size and chains. to be used in jags.

parallel

Logical value indicating whether to parallelize the models, if TRUE package parallel must be installed (uses mclapply and can not be used in Windows).

See Also

mrp_estimation, mrp_party_estimation, marco_2018


tereom/quickcountmx documentation built on Dec. 2, 2019, 9:58 p.m.