Dear all,
I fitted the same mixed model using two different functions : lmer and brm.
The estimation of the standard deviation of the random effect and the estimation of the standard errors of the intercept differ. Both estimates are higher with the Bayesian procedure.
Since I use non-informative prior in the brm specification, I would expect similar results.
The other estimates are similar for both procedures.
Do you have any idea what's happen here?
Thanks for your help,
Vincent Bremhorst.
lmer (model assumptions are met):
res <- lmer(dTmeanoff ~ habitat + (1|week), data=trh)
Linear mixed model fit by REML. t-tests use Satterthwaite's method ['lmerModLmerTest']
Formula: dTmeanoff ~ habitat + (1 | week)
Data: trh
REML criterion at convergence: 312.5
Scaled residuals:
Min 1Q Median 3Q Max
-3.5949 -0.5149 -0.0181 0.4792 2.2995
Random effects:
Groups Name Variance Std.Dev.
week (Intercept) 0.06142 0.2478
Residual 1.93221 1.3900
Number of obs: 89, groups: week, 4
Fixed effects:
Estimate Std. Error df t value Pr(>|t|)
(Intercept) 0.6200 0.2788 12.5997 2.224 0.0451 *
habitatu -0.8101 0.3503 83.0542 -2.312 0.0232 *
habitatw -1.6366 0.3698 83.2151 -4.425 2.9e-05 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Correlation of Fixed Effects:
(Intr) habitt
habitatu -0.638
habitatw -0.605 0.481
brm (convergence of the posterior chains ok)