[R-meta] Error Stopped because k = 0 after sub setting​.

Klaow sota j|j@_99 @end|ng |rom hotm@||@com
Sat Sep 17 17:02:16 CEST 2022


Dear Michael,

Thank you so much for your suggestions.
I attached the data(details of my analysis) below.
yi and vi needed to run for rma. However, I got that error message as I mentioned in the previous email.

# fit random-effects model in the three subgroups
res.s <- rma(yi, vi, subset=(interven=="PZQ"),data=dat)-->Got error
->Error: Stopped because k = 0 after subsetting.
res.r <- rma(yi, vi, subset=(interven=="Integrated"),data=dat)-->Got error
res.a <- rma(yi, vi, subset=(interven=="Health Ed"),data=dat)-->Got error

# add summary polygons for the three subgroups

addpoly(res.s, row=18.5, cex=0.90, atransf=exp, mlab=mlabfun("RE Model for Subgroup", res.s))
addpoly(res.r, row= 7.5, cex=0.90, atransf=exp, mlab=mlabfun("RE Model for Subgroup", res.r))
addpoly(res.a, row= 1.5, cex=0.90, atransf=exp, mlab=mlabfun("RE Model for Subgroup", res.a))

Is it error source of yi or vi? How should I solve this problem? Should I cut some data?

Best,
P SOTA


Order
author
year
tpos
tneg
cpos
cneg
period
lengint
lati
interven
yi
vi
12
Wisetsang
2017
0
50
3
47
2
4.00
15
health
-1.94591015
2.246498599
4
Tangsawad
2022
0
137
0
92
3
3.50
16
health
-0.39465419
3.982000935
13
Srivicha
2017
0
42
0
42
2
1.50
16
integrated
0.00000000
3.953488372
10
Songserm(2)
2021
1
46
0
47
3
3.00
15
integrated
1.09861229
2.625000000
9
Songserm(1)
2021
0
26
7
22
3
12.00
15
integrated
-2.60268969
2.062962963
7
Sommani(2)
1984
363
579
242
200
1
12.00
16
integrated
-0.35123028
0.003563038
6
Sommani(1)
1984
94
137
61
65
1
12.00
16
integrated
-0.17371489
0.014766228
1
Sommani
1987
97
903
140
260
1
36.00
16
integrated
-1.28322218
0.013952135
3
Sayasone
2017
3
42
29
12
2
1.00
18
pzq
-2.36177396
0.321203626
5
Saowakontha
1993
11
179
173
180
1
36.00
16
integrated
-2.13595234
0.088593419
15
Pimchan
2021
1
28
0
30
3
1.75
16
integrated
1.13140211
2.601075269
2
Panithanang
2018
1
32
0
33
2
3.00
14
integrated
1.09861229
2.607843137
16
Ketrun
2021
12
112
39
99
3
6.00
16
integrated
-1.07168288
0.093663466
8
Jong
1985
1
18
0
10
1
1.00
18
pzq
0.50077529
2.525757576
11
Cheepcharoenrat
2020
18
77
16
71
2
12.00
15
health
0.02981426
0.096034987
14
Chayngam
2020
1
37
3
35
2
6.00
17
health
-1.09861229
1.280701754

________________________________
From: Michael Dewey <lists using dewey.myzen.co.uk>
Sent: Saturday, September 17, 2022 7:26 PM
To: Klaow sota <jija_99 using hotmail.com>; r-sig-meta-analysis using r-project.org <r-sig-meta-analysis using r-project.org>
Subject: Re: [R-meta] Error Stopped because k = 0 after sub setting​.

Dear Klaow

Without your data it is hard to be sure. I assume you have checked that
the variable interven does indeed contain some values "PZQ"?

Michael

On 17/09/2022 11:44, Klaow sota wrote:
> I have some problems with analysis in subgroup
> It showed this message:
>   > # fit random-effects model in the three subgroups
>> res.s <- rma(yi, vi, subset=(interven=="PZQ"),data=dat)
> Error: Stopped because k = 0 after sub setting​.
>
> How should I fix it?
> Is it caused from vi, yi?
>
> Best regards,
> Klaow
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-meta-analysis mailing list @ R-sig-meta-analysis using r-project.org
> To manage your subscription to this mailing list, go to:
> https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis
>
>

--
Michael
http://www.dewey.myzen.co.uk/home.html

	[[alternative HTML version deleted]]



More information about the R-sig-meta-analysis mailing list