Prepare data for metaSEM

tssem1 function in metaSEM package uses a list data, which includes a “son” list of covariance matrix and a vector of sample size (maybe also another vector of cluster). This data format differs a lot from the wide format we used usually. In the wide format data, one row includes information for one study, hence I arrange the correlations in a matrix (usually one matrix for one study) from top to down and from left to right successively in a row.
Read more...