[R-meta] Formatting data for OSMASEM

Kiet Huynh k|etduchuynh @end|ng |rom gm@||@com
Sun Mar 13 05:34:02 CET 2022


Hi Mike,

This is very helpful. Thank you!

Kiet 

> On Mar 11, 2022, at 4:51 PM, Mike Cheung <mikewlcheung using gmail.com> wrote:
> 
> 
> Dear Kiet,
> 
> You may refer to the following links for two examples.
> https://github.com/mikewlcheung/code-in-articles/tree/master/Schutte%20Keng%20and%20Cheung%202021
> https://github.com/jeffreycvalentine/masem-prevention_science
> 
> I also suggest posting questions related to the metaSEM package to OpenMx's forum.
> https://openmx.ssri.psu.edu/forums/third-party-software/metasem
> 
> --
> ---------------------------------------------------------------------
>  Mike W.L. Cheung               Phone: (65) 6516-3702
>  Department of Psychology       Fax:   (65) 6773-1843
>  National University of Singapore
>  http://mikewlcheung.github.io/
> ---------------------------------------------------------------------
> 
>> On Sat, Mar 12, 2022 at 7:32 AM Kiet Huynh <kietduchuynh using gmail.com> wrote:
>> 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
>>         [[alternative HTML version deleted]]
>> 
>> _______________________________________________
>> R-sig-meta-analysis mailing list
>> R-sig-meta-analysis using r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis
> 
> 
> 

	[[alternative HTML version deleted]]



More information about the R-sig-meta-analysis mailing list