Skip to content
Back to formatted view

Raw Message

Message-ID: <3ec1d5f3d36e48c1a71806a2d47f85f3@UM-MAIL3214.unimaas.nl>
Date: 2022-03-04T10:45:32Z
From: Wolfgang Viechtbauer
Subject: [R-meta] metafor::vcalc() for multiple sources of dependence
In-Reply-To: <CACgv6yVDSaeTcOqifQX_Q4yoS7GevJ5-GHY_p-kWmcNsfGbghw@mail.gmail.com>

Hi Simon,

Yes, that's what vcalc() is for.

Best,
Wolfgang

>-----Original Message-----
>From: Simon Harmel [mailto:sim.harmel at gmail.com]
>Sent: Thursday, 03 March, 2022 17:35
>To: Viechtbauer, Wolfgang (SP); R meta
>Subject: metafor::vcalc() for multiple sources of dependence
>
>Hello Wolfgang,
>
>Thank you for adding such an important function! In my studies, I have
>quite a few studies that are structured as shown below.
>
>Can I use vcalc() to construct a V matrix for the three sources of
>dependence (i.e., multiple groups, times, outcomes) in say the study
>below?
>
>Thank you for your guidance,
>Simon
>
>m="
>study yi vi group time outcome
>Brown -0.10 0.05 1 0 1
>Brown 0.24 0.05 1 0 2
>Brown -0.11 0.05 1 0 3
>Brown -0.01 0.05 1 0 4
>Brown -0.12 0.05 2 0 1
>Brown 0.38 0.05 2 0 2
>Brown -0.19 0.05 2 0 3
>Brown 0.30 0.05 2 0 4
>Brown 0.45 0.05 1 1 1
>Brown 0.66 0.05 1 1 2
>Brown 0.27 0.05 1 1 3
>Brown 0.13 0.05 1 1 4
>Brown 0.08 0.05 1 2 1
>Brown 0.25 0.05 1 2 2
>Brown -0.34 0.05 1 2 3
>Brown -0.06 0.05 1 2 4
>Brown 0.48 0.05 2 1 1
>Brown 0.28 0.05 2 1 2
>Brown 0.10 0.05 2 1 3
>Brown 0.25 0.05 2 1 4
>Brown 0.11 0.05 2 2 1
>Brown 0.65 0.05 2 2 2
>Brown 0.39 0.05 2 2 3
>Brown 0.13 0.05 2 2 4"
>
>read.table(text=m,h=T)