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
I have a list of models, some of them are multinomial models from nnet, other are logistic models from base R's glm. I encounter an error when using this list as input for modelsummary:
Error: Group columns (response) were not found in the extracted data. The "group" argument must be
a column name in the data.frame produced by `get_estimates(model)`. If you wish to combine
models with and without grouped estimates, you will find examples on the modelsummary
website:
https://modelsummary.com
The issue is that get_estimates has a missing column for response since there are only two levels. A simple example:
Is there a way to force get_estimates to include a dummy response column so that the same function (with shape = model + term ~ response,) can be used for all elements of this list?
The text was updated successfully, but these errors were encountered:
I re-opened the issue because I think it's an interesting problem, but I can't think of an easy solution right now. Initially I thought that something like below would work, but in my quick attempt I couldn't get it through:
I have a list of models, some of them are multinomial models from
nnet
, other are logistic models from base R'sglm
. I encounter an error when using this list as input formodelsummary
:The issue is that
get_estimates
has a missing column forresponse
since there are only two levels. A simple example:Is there a way to force
get_estimates
to include a dummy response column so that the same function (withshape = model + term ~ response,
) can be used for all elements of this list?The text was updated successfully, but these errors were encountered: