ankargren / mfbvar

R package for Mixed-Frequency Bayesian VARs
https://ankargren.github.io/mfbvar
38 stars 21 forks source link

Use generics and methods for Gibbs sampler #1

Closed ankargren closed 7 years ago

ankargren commented 7 years ago

Create a generic function gibbs_sampler() with methods for ss and minn (or other appropriate naming of classes). The estimate_mfbvar() function can thus be more general and simply call gibbs_sampler() and dispatch will be automatic to the appropriate function. Will make extensions easier.

Potential problems: estimate_mfbvar() has some initial checks. These would need to go elsewhere?