[R-meta] DISREGARD FW: metafor all list elements must be square matrices

Viechtbauer, Wolfgang (SP) wolfg@ng@viechtb@uer @ending from m@@@trichtuniver@ity@nl
Tue Oct 30 19:35:10 CET 2018


Glad that you found the problem.

I just pushed an update to Github (and hence the 'devel' version) that makes rma.mv() a bit more tolerant to passing data frames to the 'V' argument.

Best,
Wolfgang

-----Original Message-----
From: R-sig-meta-analysis [mailto:r-sig-meta-analysis-bounces using r-project.org] On Behalf Of Crean, Hugh
Sent: Saturday, 27 October, 2018 22:09
To: 'r-sig-meta-analysis using r-project.org'
Subject: [R-meta] DISREGARD FW: metafor all list elements must be square matrices

Disregard this post.  I see that I have to convert the data frame into a matrix.

Is was a simple fix.

Thanks again,

Hugh

-----Original Message-----
From: Crean, Hugh 
Sent: Saturday, October 27, 2018 3:33 PM
To: 'r-sig-meta-analysis using r-project.org' <r-sig-meta-analysis using r-project.org>
Subject: metafor all list elements must be square matrices

This may be a very simple fix, but I am struggling to reproduce Becker's (1988) imputation of control group effect sizes for single group trials.  For some reason that I cannot figure out, I am getting an "All list elements in 'V' must be square matrices".  Below is my V matrix, which I believe is square:

     Study1      Study2      Study3      Study4       Study5       Study6       Study7        Study8
       0.118                0                0                 0                0   0.010465   0.010465   0.010465
              0         0.121                0                 0                0   0.010465   0.010465   0.010465
              0                 0        0.404                 0                0   0.010465   0.010465   0.010465
              0                 0                0         0.146                0   0.010465   0.010465   0.010465
              0                 0                0                 0         0.090  0.010465   0.010465   0.010465
0.010465  0.010465  0.010465  0.010465  0.010465  0.104465   0.010465   0.010465
0.010465  0.010465  0.010465  0.010465  0.010465  0.010465  0.085465  0.010465
0.010465  0.010465  0.010465  0.010465  0.010465  0.010465  0.010465  0.069465

I get the error running as a multivariate rma.  If I run as a simple rma, I get a non-positive sampling variances error message (but the correlations are all at least between 0 and 1).  As an aside, I get the same error message with a simple 2 x 2 matrix.

Any help is greatly appreciated.

Hugh


Hugh F. Crean, Ph.D.
Assistant Professor of Clinical Nursing
2W.156 Helen Wood Hall
School of Nursing
University of Rochester
601 Elmwood Avenue
Rochester, New York  14620

(585) 276-5575

_______________________________________________
R-sig-meta-analysis mailing list
R-sig-meta-analysis using r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis



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