predict.pollyvote: predict a pollyvote object

Description Usage Arguments Value See Also Examples

Description

predict a pollyvote opbject.

Usage

1
2
## S3 method for class 'pollyvote'
predict(object, method, ...)

Arguments

object

[pollyvote(1)]
pollyvote object to predict from.

method

[character(1)]
method of the prediction. This method name will be used to call the prediction in predict.pollyvote.

...

additional arguments

Value

a data frame containing the result of the prediction

See Also

Other predict: error_calc.pollyvote, error_calc

Examples

1
2
3
4
5
6
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")
pred <- predict(pv, method = "pollyvote")               
              

pollyvote/pollyvoter documentation built on May 25, 2019, 11:23 a.m.