Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MODEL SUMMARY FOR OOHBCHOICE #674

Closed
donaldkip77 opened this issue Oct 3, 2023 · 3 comments
Closed

MODEL SUMMARY FOR OOHBCHOICE #674

donaldkip77 opened this issue Oct 3, 2023 · 3 comments

Comments

@donaldkip77
Copy link

oohb1 <- oohbchoice(R1 + R2 ~ 1 | log(BL) + log(BH), data = oohbsyn)
oohb2 <- oohbchoice(R1 + R2 ~ age + gender | log(BL) + log(BH), data = oohbsyn)
modelsummary(oohb2)
I tried to extract model summary for this oohbchoice model. Could you please help
Error: `modelsummary could not extract the required information from a model of class "oohbchoice". The package tried a sequence of 2 helper functions to extract estimates: parameters::parameters(model) broom::tidy(model)

To draw a table, one of these commands must return a data.frame with a column named "term". The modelsummary website explains how to summarize unsupported models or add support for new models yourself: https://vincentarelbundock.github.io/modelsummary/articles/modelsummary.html These errors messages were generated during extraction: parameters::parameters(model) did not return a valid data.frame. broom::tidy(model) did not return a valid data.frame. In addition: Warning message: modelsummary could not extract goodness-of-fit statistics from a model of class "oohbchoice". The package tried a sequence of 2 helper functions: performance::model performance(model) broom::glance(model) One of these functions must return a one-row data.frame. As much as the modelsummary` website explains how to summarize unsupported models or add support for new models yourself i am finding this difficult to create a command for this model could you please help.
 
  |  
 

@vincentarelbundock
Copy link
Owner

As the error message says, this package is not supported by the upstream packages that modelsummary uses to extract information from models. For modelsummary to support these models, the parameters and performance packages would need to add support. You can open issues on the respective repositories of these packages. Please make sure that your example is minimal and reproducible: it should include all lines of code, including the initial library() call.

https://github.com/easystats/parameters

https://github.com/easystats/performance

@donaldkip77
Copy link
Author

I have initiated the pull requests in the respective repositories of the above packages
easystats/performance#637 (comment)
easystats/parameters#908

@vincentarelbundock
Copy link
Owner

Thanks! I appreciate you took the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants