Hello Statlisters,
Can anyone tell me whether it is possible to specify first-order autoregressive errors using Bayesmh? Specifically, I'm wondering if my code below can be extended to specify the following structure to the error terms.

fvset base none id
bayesmh y1 y2 = i.id x ///
, noconstant likelihood(mvnormal({S, matrix})) ///
/// variance matrix priors and blocks ///
prior({S,matrix}, iwishart(2,1000,I(2))) block({S,matrix}) ///
/// y1 priors and blocks ///
prior({y1: x}, normal(0,1000)) ///
block({y1: x}) ///
prior({y1: i.id}, normal({y1: _cons},{Sigma1})) block({y1: i.id}, reffects) ///
prior({Sigma1}, igamma(.001,.001)) block({Sigma1}, gibbs) ///
prior({y1: _cons}, normal(0,1000)) block({y1: _cons}, gibbs) ///
///
///y2 priors and blocks ///
prior({y2: x}, normal(0,1000)) ///
block({y2: x}) ///
prior({y2: i.id}, normal({y2: _cons},{Sigma2})) block({y2: i.id}, reffects) ///
prior({Sigma2}, igamma(.001,.001)) block({Sigma2}, gibbs) ///
prior({y2: _cons}, normal(0,1000)) block({y2: _cons}, gibbs) ///
burnin(2000) dots mcmcs(10000) rseed(12345) ///
exclude({y1: i.id} {y2: i.id})
Any insights you could provide would be greatly appreciated.
Justin
Can anyone tell me whether it is possible to specify first-order autoregressive errors using Bayesmh? Specifically, I'm wondering if my code below can be extended to specify the following structure to the error terms.
fvset base none id
bayesmh y1 y2 = i.id x ///
, noconstant likelihood(mvnormal({S, matrix})) ///
/// variance matrix priors and blocks ///
prior({S,matrix}, iwishart(2,1000,I(2))) block({S,matrix}) ///
/// y1 priors and blocks ///
prior({y1: x}, normal(0,1000)) ///
block({y1: x}) ///
prior({y1: i.id}, normal({y1: _cons},{Sigma1})) block({y1: i.id}, reffects) ///
prior({Sigma1}, igamma(.001,.001)) block({Sigma1}, gibbs) ///
prior({y1: _cons}, normal(0,1000)) block({y1: _cons}, gibbs) ///
///
///y2 priors and blocks ///
prior({y2: x}, normal(0,1000)) ///
block({y2: x}) ///
prior({y2: i.id}, normal({y2: _cons},{Sigma2})) block({y2: i.id}, reffects) ///
prior({Sigma2}, igamma(.001,.001)) block({Sigma2}, gibbs) ///
prior({y2: _cons}, normal(0,1000)) block({y2: _cons}, gibbs) ///
burnin(2000) dots mcmcs(10000) rseed(12345) ///
exclude({y1: i.id} {y2: i.id})
Any insights you could provide would be greatly appreciated.
Justin

Comment