Hello,
I am new to Stata and I am trying to run a Bayesian analysis. I have a model using Jags in R and tried to run this same model in Stata. The results are different. Would you be able to check whether the 2 models below are the same, or if there is anything I missed? I am using Stata 16 and I received the message that dbern was not supported by Stata.
Jags model in R:
model {
for (i in 1:N) {
fail[i] ~ dbern(pi[i])
probit(pi[i]) <-b[1] + b[2]*temp[i]
}
for (j in 1:2) {b[j] ~ dnorm(0, 0.01)}
}
Model in Stata:
bayesmh fail temp, likelihood(probit) prior({fail}, binom(({fail:temp, xb}),1)) prior({fail:temp}, normal(0,100)) prior({fail:_cons}, normal(0,100)) initial({fail:} 0) saving(challm3)
Many thanks,
Giovanna
Related Posts with Bayesian analysis question with Stata
How to reduce empty space in the cellHi, I try to reduce or remove empty space in each cell of string variables because it really hinders…
Interaction plot after poisson regressionHello everyone, after running the following regression: Code: xtpoisson patents cL.ln_xrdintensit…
identify common ownership of shareholdersDear statalist, I have a set of data with the following variables: year, symbol (symbol of each fir…
Log transformation of the dependent variable in a first-differences modelHello all, I am estimating a first differences model of the following form ΔYit = ß0 + ß1ΔXit + ɛit…
Interaction plot after poisson regressionHello everyone, after running the following regression: Code: xtpoisson patents cL.ln_xrdintensit…
Subscribe to:
Post Comments (Atom)
0 Response to Bayesian analysis question with Stata
Post a Comment