plotStudyQfuncPfunc: Example: Plotting the q- and p-function from the dissertation

Description Usage Arguments Value Examples

View source: R/example-bcg.R

Description

Example: Plotting the q- and p-function from the dissertation

Usage

1
  plotStudyQfuncPfunc(y, d, x, n)

Arguments

y

a vector of responses.

d

a vector of heteroscedasticity.

x

a design matrix.

n

number of points to interpolate along.

Value

A list of objects created by ggplot2.

Examples

1
2
3
4
5
6
7
8
bcg   <- bcgVaccineData()
bcg_y <- bcg$logrisk
bcg_d <- bcg$sdiv
bcg_s <- bcg$size
bcg_x <- cbind(1,bcg$x)
p <- plotStudyQfuncPfunc(y=bcg_y, d=bcg_d, x=bcg_x, n=500)
p[1] # plot of the q-function
p[2] # plot of the p-funciton

metagen documentation built on May 29, 2017, 7:13 p.m.