Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for models with covariates: add R^2 calculations, fix pooling #137

Open
wwiecek opened this issue Apr 21, 2022 · 1 comment
Open

for models with covariates: add R^2 calculations, fix pooling #137

wwiecek opened this issue Apr 21, 2022 · 1 comment
Milestone

Comments

@wwiecek
Copy link
Owner

wwiecek commented Apr 21, 2022

Reading material:

@wwiecek
Copy link
Owner Author

wwiecek commented Jun 7, 2022

Note: frequentist heterogeneity estimates (and hence R^2) will very easily tend toward extremes and therefore be misleading. See this example:

library(metafor)
k <- 100
x <- rnorm(k,0,1)
dt <- data.frame(se = rep(2, k),
                 x,
           tau = x + rnorm(k, 10, 1))
plot(tau ~ x, data = dt)
lm(tau~x, weights=1/se,data=dt) %>% summary()
lm(tau~x, data=dt) %>% summary()

rma(yi=tau,sei=se,data=dt,mods=~x)

Try changing SE to 0.1, 0.5, 1, 2 etc. and see how R^2 seems to only be estimated similarly to lm when SE is very low

@wwiecek wwiecek changed the title add R^2 calculations add R^2 calculations, fix pooling for models with covariates Jun 7, 2022
@wwiecek wwiecek changed the title add R^2 calculations, fix pooling for models with covariates for models with covariates: add R^2 calculations, fix pooling Jun 7, 2022
@wwiecek wwiecek added this to the v0.8 milestone Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant