Skip to content
Prev 12380 / 20628 Next

Post model fitting checks in Metafor (rma.mv)

Hi Wolfgang,

This definitely makes sense thanks ? to look at an ?overall effect? without the moderators sort of defeats the purpose of putting them there in the first place.  I was able to download your paper so I can have a wee look at that too, thanks.  I think I shall stick with extracting predicted values for specific levels of moderators.  I tried the predict function and realise I need to code the factor levels myself, but am a little confused about how to do so.  To see how the factors were coded in the model, I used: 

predict(res, addx=TRUE)

Then I know I can use ?newmods? to put in the codes for the factor levels I would like a predicted value for.  There were a lot of ?1?s and ?0?s (one for each observation and level of factor) so how can I use this to code my factor levels?

As for the profile plot for sigma2, I suppose it peaks at ~0.05 but it is just a straight line, declining from an REML value of ~ -71 (at Sigma2 = ~0.05) to an REML value of ~ -72.5 (at Sigma2 = 1).  

Of course missing values were the problem with the residual against fitted plot, it was silly of me to miss this.  Thanks!

Kind regards,
Shona


Shona Smith
PhD Researcher

Room 321
Institute of Biodiversity, Animal Health and Comparative Medicine
Graham Kerr Building
University of Glasgow
Glasgow G12 8QQ