xfim / ggmcmc

Graphical tools for analyzing Markov Chain Monte Carlo simulations from Bayesian inference
111 stars 31 forks source link

GGS for brmsmultiple objects #80

Open J-Baxter opened 6 months ago

J-Baxter commented 6 months ago

Hello,

the 'ggs' function didn't appear to natively accommodate brmsmultiple objects (ie the output of brms:brm_multiple(combine= TRUE) due to logical statement:

if ( class(S) == "brmsfit" ) {
    S <- S$fit
  }

If this logical could be relaxed as follows, everything appears to function as desired thereafter:

 if ( "brmsfit" %in% class(S)) {
    S <- S$fit
  }

Many thanks!