[R-meta] Subgroups using metaprop
Lindsay Gaudet
|ov@trom @end|ng |rom u@|bert@@c@
Sat Nov 15 00:52:51 CET 2025
I am trying to do a meta-analysis of proportions using the inverse
variance method. Attempting subgroup analyses with 3 subgroups,
regardless of the method to estimate tau or to estimate fixed (common)
or random effects, returns an error. The error occurs regardless of
the number of studies in each group, and regardless of the analysis
method chosen (i.e., other transformations, or attempting GLMM or
different methods to estimate tau). It does not occur when there are
only 2 subgroups.
The error that keeps coming up says: "Error in .C("ruben", lambda =
as.double(lambda), h = as.integer(h), delta = as.double(delta), :
"ruben" not available for .C() for package "CompQuadForm""
My code is below:
library (meta)
data <- structure(list(Study = c("Study A", "Study B", "Study C",
"Study D", "Study E", "Study F", "Study G", "Study H", "Study I",
"Study J" ), Intensity = c("Low", "Moderate", "Moderate", "Moderate",
"Moderate", "Moderate", "Moderate", "High", "Moderate", "High"),
events = c(4769, 717, 3031, 1950, 857, 4925, 310, 1626, 1292, 221), n
= c(64425, 3908, 23771, 12264, 5729, 16501, 1638, 7635, 4810, 3095)),
class = "data.frame", row.names = c(NA, -10L))
mp <- metaprop(events, n,
data = data,
method = "INVERSE",
sm="PLOGIT",
studlab = Study,
subgroup = Intensity)
I would be very grateful if anyone has any insight into what is going on here.
Lindsay
More information about the R-sig-meta-analysis
mailing list