Skip to content
Prev 13558 / 20628 Next

Perfectly correlated random effects (when they shouldn't be)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 15-07-15 04:38 PM, Ben Bolker wrote:
You can also use blme, which implements a very thin Bayesian wrapper
around [g]lmer and does maximum _a posteriori_ (i.e. Bayesian mode)
estimates with
weak (but principled) priors on the random effects -- it's based on

Chung, Yeojin, Sophia Rabe-Hesketh, Vincent Dorie, Andrew Gelman, and
Jingchen Liu. ?A Nondegenerate Penalized Likelihood Estimator for
Variance Parameters in Multilevel Models.? Psychometrika 78, no. 4
(March 12, 2013): 685?709. doi:10.1007/s11336-013-9328-2.

  Profile 'likelihood' confidence intervals based on blme will get you
a reasonable approximation of the width of the credible interval,
although it's a little bit of a cheesy/awkward combination between
marginal (proper Bayesian) and conditional (MAP/cheesy-Bayesian)
measures of uncertainty.
In this reproducible example, y is the outcome variable and x1 and x2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJVps4fAAoJEOCV5YRblxUH0wQIANBg6CaKoHuM6RQY5VltpEbk
5+RYc0tIYXmvNzGesG0QTQaLz0A5cx5mo0EGxsKQq8vUz2ycRlSlcYo9uI0K/xft
D8MMhdVr8QhIW2RtoWPNPzn6HIe276CFnHg4Co+3vbMcccbvTvWvxsDYaT/LOlRn
JoVjN/HcOscMOQkAxZV6elYBZe+kbVVhOS0SNo3Bt5P528EuWIxaRlC2lO5aoHSL
1cgLn5uyWLsxb3Cuu3FctwYfYOk9hsEXNM/EGMleshDq6umGtSm9lqiM8vqgSnMl
Iyp2A+r3fkRzfEZyWv0Ygi4OA0iZ5/BSH44+sR60hj/qSpqGYwUQ+fIrfKXAYTw=
=cHT0
-----END PGP SIGNATURE-----