Skip to content
Prev 3820 / 5636 Next

[R-meta] Substitute metafor fit for lm fit

Dear Simon,

To briefly comment on this, no, at least not easily so. lm() doesn't
store its vcov() in the lm() object. Rather it computes it via its
summary method, kind of on the fly.

If you have to do this, you probably want to look into the gls()
function from the nlme package, making sure that the default behaviors
of both functions agree (e.g., how they handle NAs, singular models
etc.).

Kind regards,
Reza
On Thu, Jan 13, 2022 at 11:38 AM Simon Harmel <sim.harmel at gmail.com> wrote:
Message-ID: <CAKt3tzke6OU3bHdDW6Se96NoR5wbk8POpLVg5qK=URz49bFz1Q@mail.gmail.com>
In-Reply-To: <CACgv6yX_5ybyxVU5JyayDegwy=YLt6rL0nz61OnManfGz5w-4A@mail.gmail.com>