Ben Torvaney
Ben Torvaney
Noting for myself to check later: I think using `ggforce::geom_arc` (or creating an analogous custom geom) for the annotations (as opposed to grobs) would facilitate this. Would also address #18...
Hey - what data source are you using? By default, `annotate_pitch` uses StatsPerform coordinates which are 100x100, but it looks like yours are scaled 0-1 in both directions
Thanks @Hughesy The error means that the data you're trying to predict has a different set of teams to those used to fit the model. [R uses factors to handle...
Thanks So, you see how in `unplayed_games`, `home` and `away` are character fields (``), and not factors (`` as in `played_games`)? ``` > unplayed_games # A tibble: 24 x 2...
Hmmm - I'm struggling to replicate this error with another dataset, I'm afraid. Do you have a link to the specific files you're using?
So, I've tried to reproduce your error, but seem to be getting predictions. Can you try running in a fresh R session again and paste the output of `devtools::session_info()` if...
Hello, This is because the package calls the `model.matrix` function with the argument `contrasts = FALSE`. This is a mistake on my part - the `contrasts` argument (actually `constrasts.arg`) should...
``` SQL SELECT version(); -- PostgreSQL 11.3 on x86_64-apple-darwin18.5.0, compiled by Apple LLVM version 10.0.1 (clang-1001.0.46.4), 64-bit ```
Ah yeah, this has been an issue forever. In my experience, it helps to seed the initial values with something vaguely reasonable, but I think this is ultimately down to...
There's no easy way using the command line arguments at the moment, although it shouldn't be too difficult to add in (https://github.com/Torvaney/soccerstan/blob/254018e1eab9e428213a9b352b9dd8cd548e401e/src/soccerstan.py#L166). I'd suggest in the meantime perhaps using Karlis-Ntzoufras's...