[R-meta] Formatting data for OSMASEM
Hello R meta community, Is anyone familiar with how to organize data in the format required for the One-Stage Meta-Analytic Structural Equation Modeling (OSMASEM; Jak & Cheung, 2019) for use with the metaSEM package, as shown below? It looks like the data is organized into a list format with each element representing a correlation matrix for each study. It is not clear to me how to create this type of data format within R (or in Excel and imported into R), probably because I?m used to working with data for meta-analysis in a dataframe format. Thank you! Kiet
library(metaSEM) data(Nohe15A1) data <- Nohe15A1$data data
$`Britt & Dawson (2005)`
W1 S1 W2 S2
W1 1.00 0.29 0.58 0.22
S1 0.29 1.00 0.24 0.57
W2 0.58 0.24 1.00 0.27
S2 0.22 0.57 0.27 1.00
$`Demerouti et al. (2004)`
W1 S1 W2 S2
W1 1.00 0.53 0.57 0.41
S1 0.53 1.00 0.41 0.68
W2 0.57 0.41 1.00 0.54
S2 0.41 0.68 0.54 1.00
$`Ford (2010)`
W1 S1 W2 S2
W1 1.00 0.35 0.75 0.32
S1 0.35 1.00 0.26 0.74
W2 0.75 0.26 1.00 0.30
S2 0.32 0.74 0.30 1.00
$`Hammer et al. (2005), female subsample`
W1 S1 W2 S2
W1 1.00 0.32 0.57 0.22
S1 0.32 1.00 0.30 0.43
W2 0.57 0.30 1.00 0.30
S2 0.22 0.43 0.30 1.00