Skip to content
Back to formatted view

Raw Message

Message-ID: <KL1PR0601MB4586409058EE9D432BD27A9B984A9@KL1PR0601MB4586.apcprd06.prod.outlook.com>
Date: 2022-09-18T14:18:30Z
From: Klaow sota
Subject: [R-meta]  Error Stopped because k = 0 after sub setting​.
In-Reply-To: <b54e22e5-e8df-ad6f-212d-10f20e48258e@imbi.uni-freiburg.de>

Thank you so much for all supporting.

Best,
Klaow

Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: Dr. Gerta R?cker <ruecker at imbi.uni-freiburg.de>
Sent: Sunday, September 18, 2022 12:15:14 AM
To: Klaow sota <jija_99 at hotmail.com>; Michael Dewey <lists at dewey.myzen.co.uk>; r-sig-meta-analysis at r-project.org <r-sig-meta-analysis at r-project.org>
Subject: Re: [R-meta] Error Stopped because k = 0 after sub setting?.


Dear Klaow,


You now that R is case-sensitive? That is, see the following:


# Set

interven <- "pzq"

# Then

interven=="pzq" # provides
[1] TRUE

# However,

interven=="PZQ" # provides
[1] FALSE


That is, you have to spell the values in the code exactly as spelled in the data set.


Best,

Gerta



Am 17.09.2022 um 17:06 schrieb Klaow sota:
I apologize for the messy data from the previous email.
The screenshot photo might be better, I attached.
I curious that yi/vi probably get problem and made the error happened.

Best,
Klaow



________________________________
From: Michael Dewey <lists at dewey.myzen.co.uk><mailto:lists at dewey.myzen.co.uk>
Sent: Saturday, September 17, 2022 7:26 PM
To: Klaow sota <jija_99 at hotmail.com><mailto:jija_99 at hotmail.com>; r-sig-meta-analysis at r-project.org<mailto:r-sig-meta-analysis at r-project.org> <r-sig-meta-analysis at r-project.org><mailto:r-sig-meta-analysis at 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 at r-project.org<mailto:R-sig-meta-analysis at 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



_______________________________________________
R-sig-meta-analysis mailing list @ R-sig-meta-analysis at r-project.org<mailto:R-sig-meta-analysis at r-project.org>
To manage your subscription to this mailing list, go to:
https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis


--

Dr. rer. nat. Gerta R?cker, Dipl.-Math.

Guest Scientist
Institute of Medical Biometry and Statistics,
Faculty of Medicine and Medical Center - University of Freiburg

Zinkmattenstr. 6a, D-79108 Freiburg, Germany

Mail:     ruecker at imbi.uni-freiburg.de<mailto:ruecker at imbi.uni-freiburg.de>
Homepage: https://www.uniklinik-freiburg.de/imbi-en/employees.html?imbiuser=ruecker

	[[alternative HTML version deleted]]