tips:rma_vs_lm_lme_lmer
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
tips:rma_vs_lm_lme_lmer [2022/04/22 12:00] – Wolfgang Viechtbauer | tips:rma_vs_lm_lme_lmer [2022/08/03 11:37] – Wolfgang Viechtbauer | ||
---|---|---|---|
Line 42: | Line 42: | ||
I^2 (total heterogeneity / total variability): | I^2 (total heterogeneity / total variability): | ||
H^2 (total variability / sampling variability): | H^2 (total variability / sampling variability): | ||
- | + | ||
- | Test for Heterogeneity: | + | Test for Heterogeneity: |
Q(df = 15) = 38.1595, p-val = 0.0009 | Q(df = 15) = 38.1595, p-val = 0.0009 | ||
Model Results: | Model Results: | ||
- | estimate | + | estimate |
- | 0.1252 | + | 0.1252 |
--- | --- | ||
Line 65: | Line 65: | ||
Weighted Residuals: | Weighted Residuals: | ||
- | Min 1Q Median | + | Min 1Q Median |
- | -3.1919 -1.0719 | + | -3.1919 -1.0719 |
Coefficients: | Coefficients: | ||
- | Estimate Std. Error t value Pr(> | + | Estimate Std. Error t value Pr(>|t|) |
(Intercept) | (Intercept) | ||
--- | --- | ||
Line 135: | Line 135: | ||
H^2 (total variability / sampling variability): | H^2 (total variability / sampling variability): | ||
- | Test for Heterogeneity: | + | Test for Heterogeneity: |
Q(df = 15) = 38.1595, p-val = 0.0009 | Q(df = 15) = 38.1595, p-val = 0.0009 | ||
Model Results: | Model Results: | ||
- | estimate | + | estimate |
- | 0.1499 | + | 0.1499 |
--- | --- | ||
Line 156: | Line 156: | ||
<code output> | <code output> | ||
Linear mixed-effects model fit by REML | Linear mixed-effects model fit by REML | ||
- | Data: dat | + | Data: dat |
AIC | AIC | ||
-8.781569 -6.657418 7.390784 | -8.781569 -6.657418 7.390784 | ||
Line 167: | Line 167: | ||
Variance function: | Variance function: | ||
| | ||
- | | + | |
- | Fixed effects: yi ~ 1 | + | Fixed effects: yi ~ 1 |
Value Std.Error DF t-value p-value | Value Std.Error DF t-value p-value | ||
(Intercept) 0.1415557 0.03071906 16 4.608073 | (Intercept) 0.1415557 0.03071906 16 4.608073 | ||
Standardized Within-Group Residuals: | Standardized Within-Group Residuals: | ||
- | | + | |
- | -1.1596768 -0.6903414 | + | -1.1596768 -0.6903414 |
Number of Observations: | Number of Observations: | ||
Line 183: | Line 183: | ||
<code rsplus> | <code rsplus> | ||
library(lme4) | library(lme4) | ||
- | res.lmer <- lmer(yi ~ 1 + (1 | study), weights = 1/vi, data=dat, | + | res.lmer <- lmer(yi ~ 1 + (1 | study), weights = 1/vi, data=dat, |
| | ||
summary(res.lmer) | summary(res.lmer) | ||
Line 192: | Line 192: | ||
Data: dat | Data: dat | ||
Weights: 1/vi | Weights: 1/vi | ||
- | Control: | + | Control: |
lmerControl(check.nobs.vs.nlev = " | lmerControl(check.nobs.vs.nlev = " | ||
REML criterion at convergence: | REML criterion at convergence: | ||
- | Scaled residuals: | + | Scaled residuals: |
- | Min 1Q Median | + | Min 1Q Median |
- | -1.1597 -0.6903 | + | -1.1597 -0.6903 |
Random effects: | Random effects: | ||
| | ||
- | | + | |
- | | + | |
Number of obs: 16, groups: | Number of obs: 16, groups: | ||
Line 232: | Line 232: | ||
H^2 (total variability / sampling variability): | H^2 (total variability / sampling variability): | ||
- | Test for Heterogeneity: | + | Test for Heterogeneity: |
Q(df = 15) = 24.0532, p-val = 0.0642 | Q(df = 15) = 24.0532, p-val = 0.0642 | ||
Model Results: | Model Results: | ||
- | estimate | + | estimate |
- | 0.1416 | + | 0.1416 |
--- | --- | ||
Line 266: | Line 266: | ||
<code output> | <code output> | ||
Linear mixed-effects model fit by REML | Linear mixed-effects model fit by REML | ||
- | Data: dat | + | Data: dat |
- | AIC BIC | + | AIC BIC |
-10.44653 -9.03043 7.223265 | -10.44653 -9.03043 7.223265 | ||
Random effects: | Random effects: | ||
| | ||
- | (Intercept) Residual | + | (Intercept) Residual |
StdDev: | StdDev: | ||
Variance function: | Variance function: | ||
| | ||
- | | + | |
- | Fixed effects: yi ~ 1 | + | Fixed effects: yi ~ 1 |
- | Value Std.Error DF t-value p-value | + | Value Std.Error DF t-value p-value |
(Intercept) 0.1499171 0.03155994 16 4.750234 | (Intercept) 0.1499171 0.03155994 16 4.750234 | ||
Standardized Within-Group Residuals: | Standardized Within-Group Residuals: | ||
- | | + | |
| | ||
tips/rma_vs_lm_lme_lmer.txt · Last modified: 2023/11/14 08:00 by Wolfgang Viechtbauer