Description Usage Arguments Value See Also Examples
calculate the prediction error of a pollyvote prediction.
1 2 | ## S3 method for class 'pollyvote'
error_calc(object, method, ...)
|
object |
[ |
method |
[ |
... |
additional arguments to the error calculation function. |
the prediction
Other predict: error_calc
,
predict.pollyvote
1 2 3 4 5 6 7 8 | pv = create_pollyvote(perm_countries = "D")
data("polls_individual")
pv = add_data(pv, newdata = polls_individual, country = "D", region = "national",
source_type = "poll", election = "BTW")
data("election_result")
pv = add_election_result(pv, "BTW 2013", election_result, date = "2013-09-22")
error_calc_pred <- error_calc(pv, "prediction_election",
prediction = "pollyvote", election = "BTW 2013")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.