<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 5 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=TR link=blue vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Respected members,<br><br><br><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>While doing meta-analysis (reliability generalization) on R metafor,  I am having trouble and I can't get over it.</span><br><br>I want to do moderator analysis with a categorical variable feature over "publications" (i.e. article, book sections, and thesis). For this, I use the following code<br><br><span style='color:red'>res<- rma(measure="ARAW", ai=ai, mi=mi, ni=ni, mods = ~ publications, data=dat)</span><o:p></o:p></p><p class=MsoNormal><span style='color:red'>res</span><o:p></o:p></p><p class=MsoNormal><span style='color:red'>predict(res, newmods=c(0, 1), digits=3)</span><o:p></o:p></p><p class=MsoNormal><br><br>However,  when I run predict code (recent code), it gives the following error.<br><br><br><span style='color:red'>Error in predict.rma(res4, newmods = c(0, 1), digits = 3) : </span><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='color:red'>Dimensions of 'newmods' (3) do not the match dimensions of the model (4).</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>As far as I understand, it gives this error because there are more than two categories. Because when I analyse a different variable with two categories (like female and male), it does the “predict” operation without giving an error. Can you help me, please? How else can I edit and run this code (predict)?<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt;color:black'>Sincerely….<br><br>Ph.D. Fatih ÇELİK</span></b><o:p></o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt;color:black'>Trabzon Üniversitesi/Trabzon University</span></b><o:p></o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt;color:black'>Vakfıkebir Meslek Yüksekokulu/Vakfikebir Vocational School</span></b><o:p></o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt;color:black'>Pazarlama ve Reklamcılık Bölümü/Department of Marketing and Advertising</span></b><o:p></o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt;color:black'> </span></b><o:p></o:p></p><p class=MsoNormal><b><i><span style='font-size:10.0pt;color:red'>Contact</span></i></b><b><span style='font-size:10.0pt;color:black'><br></span></b><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#666666'><img width=18 height=18 style='width:.1916in;height:.1916in' id="Resim_x0020_9" src="cid:image009.png@01D958F6.14997260"></span><b><span style='font-size:10.0pt;color:black'>0462 455 46 80-----4687-4685</span></b><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#666666'><img width=19 height=18 style='width:.2in;height:.1916in' id="Resim_x0020_8" src="cid:image010.png@01D958F6.14997260"></span><b><span style='font-size:10.0pt;color:black'><a href="mailto:fatihcelik@trabzon.edu.tr">fatihcelik@trabzon.edu.tr</a>   </span></b><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#666666'><img border=0 width=19 height=18 style='width:.2in;height:.1916in' id="Resim_x0020_7" src="cid:image010.png@01D958F6.14997260"></span><b><span style='font-size:10.0pt;color:black'><a href="mailto:fatihcelik2842@gmail.com">fatihcelik2842@gmail.com</a></span></b><o:p></o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt;color:black'> </span></b><o:p></o:p></p><p class=MsoNormal><b><i><span style='font-size:10.0pt;color:red'>Academic Accounts</span></i></b><o:p></o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt'><img border=0 width=23 height=23 style='width:.2416in;height:.2416in' id="Resim_x0020_6" src="cid:image011.png@01D958F6.14997260"></span></b><b><span style='font-size:10.0pt'><a href="https://www.linkedin.com/in/fatiihceelik/">LinkedIn</a></span></b><o:p></o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt'><img border=0 width=22 height=22 style='width:.225in;height:.225in' id="Resim_x0020_5" src="cid:image012.png@01D958F6.14997260"></span></b><b><span style='font-size:10.0pt'><a href="https://orcid.org/0000-0002-3765-5284">Orcid</a><span style='color:#4472C4'> </span></span></b><o:p></o:p></p><p class=MsoNormal><b><img border=0 width=25 height=25 style='width:.2583in;height:.2583in' id="Resim_x0020_4" src="cid:image013.png@01D958F6.14997260"></b><b><a href="http://abs.trabzon.edu.tr/fatihcelik">Trabzon University</a></b><o:p></o:p></p><p class=MsoNormal><b><img border=0 width=23 height=23 style='width:.2416in;height:.2416in' id="Resim_x0020_3" src="cid:image014.jpg@01D958F6.14997260"></b><b><a href="https://tinyurl.com/GoogleScholarFatih">Google Scholar</a></b><o:p></o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt'><img border=0 width=21 height=21 style='width:.2166in;height:.2166in' id="Resim_x0020_10" src="cid:image015.png@01D958F6.14997260"></span></b><b><span style='font-size:10.0pt'><a href="https://www.researchgate.net/profile/Fatih_Celik11">ResearchGate</a></span></b><o:p></o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt;color:#4472C4'><img border=0 width=19 height=19 style='width:.2in;height:.2in' id="Resim_x0020_11" src="cid:image016.png@01D958F6.14997260"></span></b><b><span style='font-size:10.0pt;color:#4472C4'><a href="https://trabzon.academia.edu/fatih%C3%A7elik">Academia</a></span></b><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>