Add as_tidybayes() methods to convert from posterior_samples() and co to equivalents in the tidybayes package.
Need methods for classes
[ ] posterior_samples
[ ] fitted_samples
[ ] predicted_samples
Need to do the following:
Change names of objects to match tidybayes standard. Usually the names are dotted (e.g. .row) and some variables have different names (fitted vs .value for the fitted_draws() function.
Add .chain and .iteration variables as vectors of NA_integer_ as mgcv doesn't work this way.
Add
as_tidybayes()
methods to convert fromposterior_samples()
and co to equivalents in the tidybayes package.Need methods for classes
posterior_samples
fitted_samples
predicted_samples
Need to do the following:
.row
) and some variables have different names (fitted
vs.value
for thefitted_draws()
function..chain
and.iteration
variables as vectors ofNA_integer_
as mgcv doesn't work this way.