Skip to content
Prev 5383 / 5632 Next

[R-meta] selection models in metafor with step truncation

Hi James,

Catching up on posts here. See:

https://github.com/wviechtb/metafor/blob/master/R/selmodel.rma.uni.r#L457

Assuming preci=1 and using your notation, this is:

ifelse(p_i < a, 1, w(p_i) / w(a))

which I think (first day back in the office - brain is still in warm-up mode) is equivalent to min(1, w(p_i) / w(a)).

I didn't consider the other possibility. Interesting idea -- I just tried this out and it does indeed give different results for some of the datasets that I used.

Do you think one of these two options makes more sense?

Happy to add this alternative version if you would like to see this in selmodel().

Best,
Wolfgang
Message-ID: <AS8PR08MB919317A1816BD890636FDE8D8B862@AS8PR08MB9193.eurprd08.prod.outlook.com>
In-Reply-To: <CAFUVuJwptKov-GpXsFaa6vfwXhoycf4mDOxZMq7Jx8-zny50_A@mail.gmail.com>