我是否错过了导致找不到predict.rma()
的 东西"factor(outcome)"
?
library(metafor)
dat <- read.csv("https://raw.githubusercontent.com/hkil/m/master/tst.csv")
fit <- rma.mv(d ~ factor(outcome)*time, V = SE^2, random= ~1|id, data = dat)
predict.rma(fit, addx=T, newmods = c("factor(outcome)"=1, time=1))
# Error: Could not find variable 'factor(outcome)' in the model.