vpc {dosresmeta} | R Documentation |
Variance Partition Components for dosresmeta Objects
Description
Computes the Variance Partition Components for dose-response meta-analysis.
Usage
vpc(object)
Arguments
object |
an object of class |
Value
A vector containing the variance partition components for each non-referent observation.
Author(s)
Alessio Crippa, alessio.crippa@ki.se
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.
Examples
## loading data
data("sim_os")
## Quadratic (one-stage) dose-response model
quadr <- 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 vpc
plot(sim_os$dose[sim_os$se!=0], vpc(quadr), xlab = "dose")
lines(lowess(sim_os$dose[sim_os$se!=0], vpc(quadr)))
[Package dosresmeta version 2.0.1 Index]