Description Usage Arguments Value See Also Examples

calculate the prediction error of a pollyvote prediction.

1 | ```
error_calc(object, method, ...)
``` |

`object` |
[ |

`method` |
[ |

`...` |
additional arguments to the error calculation function. |

a data frame containing the result of the error calculation

Other predict: `error_calc.pollyvote`

,
`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")
``` |

pollyvote/pollyvoter documentation built on Dec. 30, 2018, 11:04 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.