get.est.model | R Documentation |
Functions for obtaining bias and standard deviation of the estimated models as well as the model fits.
tfr.bias.sd(mcmc.list = NULL, country = NULL, sim.dir = NULL, ...)
get.bias.model(mcmc.list = NULL, country = NULL, sim.dir = NULL, ...)
get.std.model(mcmc.list = NULL, country = NULL, sim.dir = NULL, ...)
mcmc.list |
Object of class |
country |
Name or numerical code of a country. It can also be given as ISO-2 or ISO-3 characters. |
sim.dir |
Directory with the MCMC simulation results. Only used if |
... |
Not used. |
Functions get.bias.model
and get.std.model
are used to obtain the model fit for estimated bias and standard deviation, respectively, when uncertainty about input data is taken into account. These are used in the MCMC steps stored in mcmc.list
. Function tfr.bias.sd
combines both infos into one object.
Functions get.bias.model
and get.std.model
return a list with
model |
|
table |
|
Function tfr.bias.sd
consolidates these items into a single list where the elements are model_bias
, model_sd
and table
.
Peiran Liu, Hana Sevcikova
## Not run:
sim.dir <- tempfile()
mcmc.set <- run.tfr.mcmc(nr.chains = 1, iter = 10,
output.dir = sim.dir, uncertainty = TRUE)
tfr.bias.sd(mcmc.set, "Nigeria")
unlink(sim.dir, recursive = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.