Skip to contents

All functions

cross_fun()
Calculation of the voter turnout difference between two votes
double_mad()
Get the left and right Median Absolute Deviations (MAD) from the median for asymmetric distributions
double_mad_from_median()
Calculate the distance of a value from the median of a distribution in relation to its Median Absolute Deviation (MAD)
get_differences()
Calculation of the voter turnout difference between multiple votes
is_outlier_double_mad()
Detect outliers using MAD from the median for asymmetric distributions
is_outlier_single_mad()
Detect outliers using Z-score with MAD for symmetric distributions
is_outlier_turkey()
Detect outliers using turkey's fences
is_outlier_z()
Detect outliers using classic Z-scores for symmetric distributions
outlier_range()
Get boundaries beyond which a value is an outlier via MAD from the median for asymmetric distributions and IQR
predict_single_vote()
Run prediction for one vote
predict_votes()
Run predictions for multiple votes
result_data
Test data containing results for national votes from the canton of Zurich for all Sundays from 2017-03-01 to 2020-09-27.
rmse()
Calculate RMSE
train_prediction_model()
Train model for prediction of one vote
vote_data
Test data containing past results and incomplete results for two votes.