-
Notifications
You must be signed in to change notification settings - Fork 31
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
streamline S3 classes #451
Comments
Yes, I agree. This is a nice idea. Helps make a point that the models are really subsets/supersets of each other as well. |
I'm working on this and have a few questions:
Are all three functions going to return the unformatted Is
|
Currently the three models included in the package return S3 class with similar but slightly different contents. Whilst to some degree that's expected because of their different use cases it might be nice to streamline this a bit to simplify the user experience and allow common access functions.
I'm thinking that perhaps as a minimum they should all return
args
(the result ofcreate_stan_args
),fit
(thestanfit
object) andobservations
as everything else, I think, could be constructed from these three elements using appropriatesummary
orextract_...
methods.If doing this changes would be likely to break existing workflows, but as we're introducing breaking changes towards 2.0.0 anyway this might be a good time to do this if at all.
Current returns are:
Created on 2023-09-08 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: