This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################################################ | |
| library(metafor) | |
| library(ape) | |
| ############################################################################ | |
| # read the documentation for this dataset | |
| help(dat.moura2021) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # robumeta calculations | |
| library(grid) | |
| library(robumeta) | |
| data(hierdat) | |
| HTJ <- robu(effectsize ~ males + binge, | |
| data = hierdat, modelweights = "HIER", | |
| studynum = studyid, | |
| var.eff.size = var, small = FALSE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require(Formula) | |
| require(metafor) | |
| require(sandwich) | |
| require(zoo) | |
| require(lmtest) | |
| #----------------------------------------------- | |
| # Functions for making sandwich standard errors | |
| #----------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require(Formula) | |
| require(metafor) | |
| require(sandwich) | |
| require(zoo) | |
| require(lmtest) | |
| #----------------------------------------------- | |
| # Identify outer-most clustering variable | |
| #----------------------------------------------- |