It looks to me as if the problem is with your prior. If run your code, but use the default priors in stan_glm() I get
Estimates:
mean sd 2.5% 25% 50% 75% 97.5%
(Intercept) -3.290 0.900 -5.320 -3.833 -3.191 -2.626 -1.811
treatment 2.804 0.922 1.268 2.145 2.709 3.370 4.835
mean_PPD 0.270 0.061 0.157 0.225 0.270 0.315 0.393
log-posterior -45.459 1.023 -48.282 -45.847 -45.139 -44.729 -44.459
Diagnostics:
mcse Rhat n_eff
(Intercept) 0.031 1.005 834
treatment 0.030 1.003 918
mean_PPD 0.001 1.000 2419
log-posterior 0.031 1.002 1065
A normal prior with a scale of 100 puts virtually all of the weight in the prior at 0 or 1.
Kent
--
You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
To post to this group, send email to stan-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
But, when I fit the same model using these weakly informative priors via "arm::bayesglm", then the the coefficient estimate is 2.53 with standard deviation 0.85. As you can see, MCMC still gives different result.
My question is "why results of MCMC with flat priors are different than results of MLE" and " why MCMC with more informative priors are different than arm::bayesglm with more informative priors."
OK, now my question is follows:
Is it normal to see that MCMC with flat prios may differ from MLE results when posterior is skewed?
And, normally I think I should trust MCMC results more than MLE results, but in this application, don't you think that MCMC causes more biased results compared to MLE? because MCMC give median estimate for odds ratio 26 , while MLE gives 18 and Firth correction gives 12? SO MCMC more overestimate the treatment effect?