[R-meta] A question about meta-regression Analysis
Hamed Kianmehr
hki@nme1 @ending from bingh@mton@edu
Fri Jul 13 16:02:58 CEST 2018
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:
1- Is it any polynomial regression pattern in this data?
2- I wrote below code but I couldn't get the line, Could you help me?
----------------
res<-rma(yi=y, vi=s2, data=data, method="DL",mods = ~ poly(year, degree=2))
years <- 1989:2016
preds <- predict(res, transf = transf.ilogit, newmods =cbind(years,years^2))
wi <- 0.5/sqrt(data$s2)
wi <- 0.5 + 3.0 * (wi - min(wi))/(max(wi) - min(wi))
plot(data$year, transf.ilogit(y), cex=wi,xlab="Year",ylab="Patient
Expectation (%)")
lines(years, preds$pred)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-meta-analysis/attachments/20180713/751d364d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Rplot.jpeg
Type: image/jpeg
Size: 35122 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-meta-analysis/attachments/20180713/751d364d/attachment-0001.jpeg>
More information about the R-sig-meta-analysis
mailing list