Description Usage Arguments See Also
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.
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)
|
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 |
n_burnin |
Number of iterations, burnin size and chains.
to be used in |
n_chains |
Number of iterations, burnin size and chains.
to be used in |
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). |
mrp_estimation
, mrp_party_estimation
,
marco_2018
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.