You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Diff() removes the first column of the differenced model matrices for player 1 and player 2 if it is inestimable (always the case by default as models have an intercept). However, for a model without a intercept it may be preferable to keep this column to show that the parameter is inestimable - this would be consistent with keeping other inestimable parameters.
where Matchup is the pair of characters (character played by player; character played by opponent) and the first level of Matchup is a character against itself.
In general, may be better to explicitly identify inestimable parameters. Possibly better than relying on glm.fit to detect them as aliased parameters may not be identified if some parameters tend to infinity. E.g. set columns of model matrix for inestimable parameters to zero:
would then work (setting parameter for last Character to zero).
Note lm() includes NA rows and columns in vcov for NA parameters, this might be sensible too, so coef matches vcov.
Alternatively, could simplify output by dropping all inestimable parameters. Possibly add as option (drop.unused.levels); should be backward-compatible.
The text was updated successfully, but these errors were encountered:
Diff()
removes the first column of the differenced model matrices for player 1 and player 2 if it is inestimable (always the case by default as models have an intercept). However, for a model without a intercept it may be preferable to keep this column to show that the parameter is inestimable - this would be consistent with keeping other inestimable parameters.E.g.
where Matchup is the pair of characters (character played by player; character played by opponent) and the first level of Matchup is a character against itself.
In general, may be better to explicitly identify inestimable parameters. Possibly better than relying on glm.fit to detect them as aliased parameters may not be identified if some parameters tend to infinity. E.g. set columns of model matrix for inestimable parameters to zero:
E.g.
would then work (setting parameter for last Character to zero).
Note lm() includes NA rows and columns in vcov for NA parameters, this might be sensible too, so coef matches vcov.
Alternatively, could simplify output by dropping all inestimable parameters. Possibly add as option (
drop.unused.levels
); should be backward-compatible.The text was updated successfully, but these errors were encountered: