Variance Partition Components for dosresmeta Objects
Variance Partition Components for dosresmeta Objects
Computes the Variance Partition Components for dose-response meta-analysis.
vpc(object)
Arguments
object: an object of class dosresmeta produced by dosresmeta.
Returns
A vector containing the variance partition components for each non-referent observation.
Examples
## loading datadata("sim_os")## Quadratic (one-stage) dose-response modelquadr <- dosresmeta(logrr ~ dose + I(dose^2), id = id, se = se, type = type, cases = cases, n = n, data = sim_os, proc ="1stage")## Plot of the estimated vpcplot(sim_os$dose[sim_os$se!=0], vpc(quadr), xlab ="dose")lines(lowess(sim_os$dose[sim_os$se!=0], vpc(quadr)))
References
Goldstein H, Browne W, Rasbash J. Partitioning variation in multilevel models. Understanding Statistics: Statistical Issues in Psychology, Education, and the Social Sciences. 2002 Dec 2;1(4):223-31.