Compares truth to estimates at the district and precinct-level. Requires the truth
argument in the ei
object.
Arguments
- ei.object
The output of
ei()
Examples
data(matproii)
truth <- cbind(matproii$tb, matproii$tw)
suppressMessages({
ei_res <- ei(formula = t ~ x, total = "n", truth = truth, data = matproii)
})
plot_truth(ei_res)