Open hmantovani opened 12 months ago
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 be a list, not TRUE
/FALSE
. This results in a warning being shown in recent versions of R (3.6+, I think), but as far as I know, it shouldn't actually cause issues (please let me know if this is not correct).
I know it's not great to have confusing warnings thrown out like this, but you should be okay to ignore it.
I'm trying to model the Brasileirão 2023 league with the results directly out of the FBRef site, but I can't create the model for some reason I do not understand. I'm getting this message: In model.matrix.default(~values - 1, model.frame(~values - 1), contrasts = FALSE) : non-list contrasts argument ignored What could be happening? df is a dataframe with the columns home, hgoal, away, agoal for all the Brasileirão matches
It's also happening to the default premier_league_2010 data. Could it be some package conflict?