-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
should variables() behave differently for draws_rvars
format?
#208
Comments
Yeah, thanks that would be helpful! I think it's mentioned in the vignette but probably not elsewhere. Alternatively, we could discuss if we want to keep that difference? It may be that we want to be able to get variable names and counts counted either way (by the base variable name or by the combination of variable and indices) when using any format, in which case we might want an additional function (or option) to do that. In hindsight while the idiosyncratic version of |
draws_rvars
formatdraws_rvars
format?
I forgot about the vignette. You're right, it does show this behavior there. I can also add something to the roxygen doc ( I guess the doc will depend on what we decide about adding a new function or argument, like you mentioned).
I like the idea of being able to get this info for any format. I just changed the name of this issue from just about the doc to discussing this question. I'd be ok with either a separate function or just an argument to
Yeah I just ran into something in CmdStanR where we have some code that mistakenly assumes that |
Makes sense. I think a default of giving the variable names with indices is probably sensible for compatibility with other parts of the interface. If we had an option for giving only the "base" name, what is a sensible name? One potential complication is that I'd be curious what @paul-buerkner thinks. |
I agree that, ideally, I don't have a good intiution about |
When working on stan-dev/cmdstanr#582 I was reminded that
variables()
andnvariables()
behave differently for thedraws_rvars
format compared to all other formats. I don't think this difference (treating vector/matrix variables as a single variable vs. treating elements as separate variables) is documented anywhere (or maybe I missed it). Should I add this information to thehelp("draws-index")
page where these functions are documented?The text was updated successfully, but these errors were encountered: