<div dir="ltr">Thank you for your prompt response. <div><br></div><div>For the test, do you mean the value of coefficient(s) (attached file)?  if yes, how can I find it better than rest of them? </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 13, 2018 at 1:02 PM, Viechtbauer, Wolfgang (SP) <span dir="ltr"><<a href="mailto:wolfgang.viechtbauer@maastrichtuniversity.nl" target="_blank">wolfgang.viechtbauer@maastrichtuniversity.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks. Well, hard to say if these data are suggestive of a quadratic trend based on visual inspection.<br>
<br>
The test of the coefficient for 'poly(year, 2)2' tells you whether the quadratic model fits significantly better than just the linear model.<br>
<br>
Best,<br>
Wolfgang<br>
<br>
-----Original Message-----<br>
From: Hamed Kianmehr [mailto:<a href="mailto:hkianme1@binghamton.edu">hkianme1@binghamton.<wbr>edu</a>] <br>
Sent: Friday, 13 July, 2018 18:39<br>
To: Viechtbauer, Wolfgang (SP)<br>
Cc: <a href="mailto:r-sig-meta-analysis@r-project.org">r-sig-meta-analysis@r-project.<wbr>org</a><br>
Subject: Re: [R-meta] A question about meta-regression Analysis<br>
<br>
ATTACHMENT(S) REMOVED: Plot.jpg <br>
<div class="HOEnZb"><div class="h5"><br>
Thank you for your response. <br>
Please see the attached file regarding the plot. <br>
<br>
On Fri, Jul 13, 2018 at 12:35 PM, Viechtbauer, Wolfgang (SP) <<a href="mailto:wolfgang.viechtbauer@maastrichtuniversity.nl">wolfgang.viechtbauer@<wbr>maastrichtuniversity.nl</a>> wrote:<br>
Dear Hamed,<br>
<br>
Please post in plain text format. I cannot see any plot. Either attach it as a separate image file or post it somewhere else and provide a link.<br>
<br>
As for 2 - If you use poly(), try:<br>
<br>
preds <- predict(res, transf = transf.ilogit, newmods = unname(poly(years, degree=2)))<br>
<br>
Best,<br>
Wolfgang<br>
<br>
-----Original Message-----<br>
From: R-sig-meta-analysis [mailto:<a href="mailto:r-sig-meta-analysis-bounces@r-project.org">r-sig-meta-analysis-<wbr>bounces@r-project.org</a>] On Behalf Of Hamed Kianmehr<br>
Sent: Friday, 13 July, 2018 16:03<br>
To: <a href="mailto:r-sig-meta-analysis@r-project.org">r-sig-meta-analysis@r-project.<wbr>org</a><br>
Subject: [R-meta] A question about meta-regression Analysis<br>
<br>
I have some questions regarding the meta-regression analysis. I have the database on the proportion (Below bubble plot). My advisor asked me to do the polynomial regression. I have two questions:<br>
<br>
1- Is it any polynomial regression pattern in this data?<br>
2- I wrote below code but I couldn't get the line, Could you help me?<br>
----------------<br>
res<-rma(yi=y, vi=s2, data=data, method="DL",mods = ~ poly(year, degree=2))<br>
years <- 1989:2016<br>
preds <- predict(res, transf = transf.ilogit, newmods =cbind(years,years^2))<br>
wi <- 0.5/sqrt(data$s2)<br>
wi <- 0.5 + 3.0 * (wi - min(wi))/(max(wi) - min(wi))<br>
plot(data$year, transf.ilogit(y), cex=wi,xlab="Year",ylab="<wbr>Patient Expectation (%)")<br>
lines(years, preds$pred)<br>
<br>
--<br>
Best Regards,<br>
Hamed Kianmehr, Ph.D. Candidate<br>
Department of Systems Science and Industrial Engineering<br>
The State University of New York at Binghamton<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p style="text-align:justify">Best Regards,</p><p style="text-align:justify">Hamed Kianmehr, Ph.D. Candidate</p><p style="text-align:justify">Department of Systems Science and Industrial Engineering</p><p style="text-align:justify">The State University of New York at Binghamton</p><div style="margin:2px 0px 0px"></div></div></div>
</div>