tidystats icon indicating copy to clipboard operation
tidystats copied to clipboard

Support for metafor functions

Open gasparl opened this issue 2 years ago • 6 comments

I would add support for the following functions from the metafor R package:

  • [x] rma.uni()
  • [x] rma.mh()
  • [x] rma.peto()
  • [x] rma.glmm()
  • [x] rma.mv()
  • [x] confint.rma()
  • [x] anova.rma()
  • [x] permutest()
  • [x] tes()
  • [x] matreg()
  • [x] ranktest()
  • [x] regtest()
  • [x] trimfill()
  • [x] selmodel()
  • [x] fsn()
  • [x] hc()
  • [x] robust()
  • [x] cumul()

gasparl avatar May 23 '22 08:05 gasparl

Works for me!

Is the second function correct through?

WillemSleegers avatar May 23 '22 08:05 WillemSleegers

You mean rma.mh()? It's "Meta-Analysis via the Mantel-Haenszel Method".

gasparl avatar May 23 '22 08:05 gasparl

Alright, I thought it may have been rma.mv(), which we should also definitely add.

WillemSleegers avatar May 23 '22 09:05 WillemSleegers

Ah right, I added it.

gasparl avatar May 23 '22 09:05 gasparl

This is now done.

Again, many arbitrary decisions had to be made, but, since the working core is there, alternations for other preferences should be easy to implement. Given the complexity of many functions (e.g. in particular rma.mv), full testing of all relevant argument combinations is not really feasible, but I did my best to cover all cases that might make a difference.

And again, there are some related changes in the Google Docs add-in, see here.

gasparl avatar Jun 10 '22 15:06 gasparl

Thanks!

WillemSleegers avatar Jun 10 '22 15:06 WillemSleegers