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?
Create a generic function
gibbs_sampler()
with methods forss
andminn
(or other appropriate naming of classes). Theestimate_mfbvar()
function can thus be more general and simply callgibbs_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?