Learn R Programming

metagen (version 1.0)

plotDensitySlope: Pivotal distributions: Plot pivotal distribution of regression coefficients

Description

Pivotal distributions: Plot pivotal distribution of regression coefficients

Usage

plotDensitySlope(pivr)

Arguments

pivr
data frame of independent draws from of pivots.

Examples

Run this code
bcg   <- bcgVaccineData()
bcg_y <- bcg$logrisk
bcg_d <- bcg$sdiv
bcg_s <- bcg$size
bcg_x <- cbind(1,bcg$x)

set.seed(865287113)
pivUn <- pivotalStream(50, y=bcg_y, d=bcg_d, x=bcg_x,
  adjusted=FALSE)
set.seed(865287113)
pivAd <- pivotalStream(50, y=bcg_y, d=bcg_d, x=bcg_x, s=bcg_s,
  adjusted=TRUE)

pivr <- joinPivotalCoefficients(pivUn, pivAd)
plotDensitySlope(pivr)

Run the code above in your browser using DataLab