[R-meta] DISREGARD FW: metafor all list elements must be square matrices
Crean, Hugh
hugh_cre@n @ending from URMC@Roche@ter@edu
Sat Oct 27 22:09:03 CEST 2018
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
More information about the R-sig-meta-analysis
mailing list