[R-meta] Subgroups using metaprop

Michael Dewey ||@t@ @end|ng |rom dewey@myzen@co@uk
Sat Nov 15 12:13:18 CET 2025


Dear Lindsay

When I run your code here it works seamlessly. Do you perhaps have old 
versions of one or other of the packages mentioned? Or are you using an 
incompatible version of R? I would suggest doing update.packages() to 
see if that clears it. If you have an old version of R I would update 
that first.

Michael

On 14/11/2025 23:52, Lindsay Gaudet via R-sig-meta-analysis wrote:
> 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
> 
> _______________________________________________
> R-sig-meta-analysis mailing list @ R-sig-meta-analysis using r-project.org
> To manage your subscription to this mailing list, go to:
> https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis

-- 
Michael Dewey



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