vpc: Variance Partition Components for dosresmeta Objects

Description Usage Arguments Value Author(s) References Examples

Description

Computes the Variance Partition Components for dose-response meta-analysis.

Usage

1
vpc(object)

Arguments

object

an object of class dosresmeta produced by dosresmeta.

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)))
 

dosresmeta documentation built on May 2, 2019, 6:30 a.m.