initial_region_aggregation_pollyvote: First calculates predictions on level of each region by using...

Description Usage Arguments Value

Description

First calculates predictions on level of each region by using initial_region_prediction_pollyvote function and afterwards aggregates predictions over the regions in order to obtain final single prediction for a party on given day.

Usage

1
2
initial_region_aggregation_pollyvote(pv, time_int = NULL, agg_fun = "mean",
  na_handle = "last", region_method = c("wta", "vs"))

Arguments

pv

[pollyvote]
the pollyvote object of which to get the prediction data from.

agg_fun

[character(1)]
the name of the aggregation function to use, currently 'mean' and 'median' are supported

na_handle

[character(1)]
specifies how NA values are handled in the data.

region_method

method of aggregation of party scores over different regions. See handle_region_method function for implementation and meaning of the parameteres.

time_int[date]

the time interval for the prediction.

Value

dataframe containing aggregated predictions for the parties aggregated over regions.


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