[R-meta] Error Stopped because k = 0 after sub setting.
Dr. Gerta Rücker
ruecker @end|ng |rom |mb|@un|-|re|burg@de
Sat Sep 17 18:15:14 CEST 2022
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 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
> <https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis>
> >
> >
>
> --
> Michael
> http://www.dewey.myzen.co.uk/home.html
> <http://www.dewey.myzen.co.uk/home.html>
>
> _______________________________________________
> 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
--
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 using imbi.uni-freiburg.de
Homepage: https://www.uniklinik-freiburg.de/imbi-en/employees.html?imbiuser=ruecker
[[alternative HTML version deleted]]
More information about the R-sig-meta-analysis
mailing list