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
Including number of observations used to build the model #82
Comments
I also think it would be useful if glance output included nobs. It looks like glance.stanreg already does: https://github.com/dgrtwo/broom/blob/master/R/rstanarm_tidiers.R |
Just adding my vote to this feature. I think in most fields, it is standard to report the N as one of the summary statistics. |
hello there! is there a fix for that very important feature? |
I'd be willing to this in a tryCatch to I'm hesitant to report counts for each factor level in |
I'm building a regression summary package built on broom and users are requesting this feature. It's pretty important to me, and I would be willing to do it if you tell me about your implementation preferences. To answer your question, a lot of models actually implement the
|
@alexpghayes One possible design that I would be willing to implement: For each element of the list above which are not compatible with Modify the This is a bit more work (which I am willing to do), but it's explicit, and would avoid unexpected side effects from having a bunch of ifelse statements. |
Sounds simpler to just implement |
Sure. I'm happy to write a bunch of Basically,
|
I'm in the process of checking every model object for which https://gist.github.com/vincentarelbundock/24bedac98499181790aab230cc5b74bc |
Closed in #597! Thanks @vincentarelbundock! |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
I think it would be useful if some version of the
data.frame
that represents the result also include a column with the number of observations that were used to build the model.An easy way to access would be using e.g.
nobs()
forstats::lm()
, but I'm sure other models have similar reporting of this.It would be even more useful if it could include the actual number of observations for
logicalTRUE
orfactorLEVEL
.The text was updated successfully, but these errors were encountered: