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
Hi,
We're having issues plotting model statistics when investigating a set of models. The problems are scattered between see and bayestestR.
Here's an example of the problem. In our case we want the 3 diagnostic plots returned from a single function. I've separated them for illustration purposes.
This error is attributable to here, as there's no check of the data argument.
I'll stop with the code, but you get the idea. The rope code in bayesStuffC can be fixed by passing a model argument to plot. bayestestR::plot.describe_posterior, used in bayesStuffB, doesn't have a data argument but needs something equivalent.
Also note that the current setup is potentially dangerous - it is easy to accidentally leave a model in the global environment with the same name as one created in the function and the plot functions will silently use that one.
The text was updated successfully, but these errors were encountered:
Hi,
We're having issues plotting model statistics when investigating a set of models. The problems are scattered between see and bayestestR.
Here's an example of the problem. In our case we want the 3 diagnostic plots returned from a single function. I've separated them for illustration purposes.
Simple first pass version:
Errors as follows:
Now, following the advice of the error messages:
This error is attributable to here, as there's no check of the data argument.
I'll stop with the code, but you get the idea. The
rope
code in bayesStuffC can be fixed by passing a model argument to plot.bayestestR::plot.describe_posterior
, used in bayesStuffB, doesn't have a data argument but needs something equivalent.Also note that the current setup is potentially dangerous - it is easy to accidentally leave a model in the global environment with the same name as one created in the function and the plot functions will silently use that one.
The text was updated successfully, but these errors were encountered: