Trying to do a meta-analysis of correlations in R using the meta package; have tried several things and keep getting a similar error. Can anyone help explain the error? > cor<-c(-0.3018, 0.667, -3.8002, -0.607, -0.4885, -3.8002, -0.0701, 0.1348, > -0.9505, -0.5709, -0.6127, -1.2419, -0.1511, -0.1054)> > n<-c(3,4,3,3,3,3,16,36,30,9,3,3,30,4)> library(meta)> metacor(cor, n, > data=NULL, subset=NULL, sm="ZCOR", level=0.95, level.comb=level, > comb.fixed=TRUE, comb.random=TRUE, hakn=NULL, method.tau="DL", > tau.preset=NULL, TE.tau=NULL, method.bias="linreg", title="title", > complab="comparison", outclab="outcome") Error in data.frame(subset = NULL, comb.fixed = TRUE, comb.random = TRUE, : arguments imply differing number of rows: 0, 1 Thanks, Catherine [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.