An example of how to create a xG model using R and Wyscout event data
This repository contains all the necessary codes to ideally reproduce the data processing, analysis and visualization described in this article, which is focused on how to fit a football xg model using R software and the public event dataset by Wyscout.
Before to use these codes you have to get this list of required datasets:
You can download them from this website.
Then, I suggest to use the codes in the following order:
Evaluate calibration of the models with Brier score following the method contained in this article
Test additional features