You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, this info is not currently stored inside the returned object. The same applies to various other inputs (e.g., rma.uni(ri=0.5, ni=50, measure="COR")$ri is NULL). Is there a specific reason why you need this?
As for ni vs ni.f - the former has missings removed, the later does not. Compare:
rma.uni(xi = c(10,NA), ni = c(50,50), measure = "PR")$ni
rma.uni(xi = c(10,NA), ni = c(50,50), measure = "PR")$ni.f
I was working on a function rma2meta() which takes a metafor object and 'transforms' it to a meta object, e.g., to produce a forest plot with meta or conduct a Copas analysis using metasens. Internally, I use R functions like metaprop() requiring the number of events and sample sizes. This started more like a toy project, however, I think it could be quite handy.
In principle, I could add the input variables to the returned object. This actually happens for a few measures (such as "RD", "RR", and "OR") to make things like labbe() work (e.g., rma(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg)$ai.f). I have to think about how to do this properly, since these objects are such a mess anyway (don't look at str(rma(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg))). I will add this to my to-do list, but not sure when I will get to this. I'll keep this issue open as a reminder.
Classification
Feature Request
Summary
Hi Wolfgang,
It looks like the number of events 'xi' and non-events 'mi' are not part of an rma.uni object (look for 666 in output of the two examples).
I guess the same is true for 'ti' and 'ri' in the meta-analysis of single rates or single correlations.
BTW, is there any difference between list elements 'ni' and 'ni.f'?
Best wishes,
Guido
Reproducible Example
sessionInfo()
Post output of
sessionInfo()
below:The text was updated successfully, but these errors were encountered: