March 2019
Beginner to intermediate
448 pages
13h 14m
English
In this recipe, we will attempt to predict FC Barcelona's goals throughout the 2017/18 season, using some covariates and the club's previous goals. This will expose the many difficulties that exist when working with sports; even after using several important covariates, we won't be doing any better than just using the average for FC Barcelona's goals for that season (2.60):
library("tscount") library(dummy) library(dplyr) data = read.table("./E1.txt",sep="\t",head=T) data$home_away = ifelse(data$ha ...Read now
Unlock full access