Nice post indeed, Mher! I have studied your code a while and I have some comments. Sorry if I misunderstood your code but here it goes... As I ran your code I suspected the H2H calculation was not according the description you've provided. ...
Summing up For & Against goals (separately) when a team plays as home team or visitor is a interesting approach! I'm very curious to see how would be the results with the corrections mentioned is the comments above!
Thanks for all replies!!! I have run the code above and it worked perfectly! However I miss one precious information! The output table has one missing column in the result I got: the model column (see above). Without this information I do not know...