open-AIMS / bayesnec

Bayesian No-Effect-Concentration estimation in R
https://open-AIMS.github.io/bayesnec
Other
11 stars 6 forks source link

Add method to extract brms object #108

Closed beckyfisher closed 1 year ago

beckyfisher commented 2 years ago

Currently, for some model inspection using the underlying brms functions the internal structure of the bayesnecfit and bayesmanecfit is exposed. E.g., plot(fit$fit); sample_priors(fit$fit$prior). It would seem preferable to have methods for the objects which allow to extract the information without the user being aware of the internal structure of the object. One might also allow to extract the `brms' object and have the user who is familiar with the brms package re-use functionality from that package.

beckyfisher commented 1 year ago

Vignettes need to be checked to ensure they use the new method.