Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta.forest; subgroup effect #49

Closed
fohofmann opened this issue Dec 1, 2022 · 4 comments
Closed

meta.forest; subgroup effect #49

fohofmann opened this issue Dec 1, 2022 · 4 comments

Comments

@fohofmann
Copy link

fohofmann commented Dec 1, 2022

Hi Guido, hi everyone,

thank you for your help and the solution regarding the last issue (#48), and I am really sorry to bother you once again.

Given the previously explored example

# libraries
library(meta)
library(data.table)

# data
dt <- data.table(
 ID = rep(1:5, each=3),
 AE = rep(c("minor","major","deadly"),5),
 ni = rep(c(25,19,101,32,50), each=3),
 xi = c(2,3,3,4,1,0,29,13,4,7,4,1,7,2,1) )

# meta-analysis & forest plot
res <- metaprop(xi, ni, cluster=ID, subgroup=AE, data=dt)
forest(res, subgroup=T)

metaprop() works fine, and also estimates of the effect are reported.
However, forest() does not plot the summary effect per subgroup, regardless how the arguments type.random, type.subgroupor type.subgroup.random are defined.

Any advices? Wrong configuration at my side, or a structural problem of forest()?
Sorry once again, and all the best,
Felix

@guido-s
Copy link
Owner

guido-s commented Dec 13, 2022

Felix,

It took me some time to look into this. Should be fixed now.

Best wishes,
Guido

@guido-s guido-s closed this as completed Dec 13, 2022
@fohofmann
Copy link
Author

Thank you again for all your efforts, Guido!

Error in runMLM(c(list.mlm, list(data = data.frame(cluster = cluster[sel.4], : could not find function "runMLM"
Calls: ... eval_with_user_handlers -> eval -> eval -> metaprop -> metagen

As far as I understand extrMLMand runMLMare wrapper-functions to pass over mlm-arguments to metafor:rma.mv.
I would have expected their definition in meta-aux.R(comparable to runNN, but with preset func-arg or sth similar)?

@guido-s
Copy link
Owner

guido-s commented Dec 13, 2022

Classic mistake - I had the auxiliary functions in other files which I did not upload to the Git repository. I added them to meta-aux.R as suggested by you.

@fohofmann
Copy link
Author

Thanks for getting back on this. Works perfectly fine now. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants