Description Usage Arguments Value Examples
Example: Plotting the q- and p-function from the dissertation
1 | plotStudyQfuncPfunc(y, d, x, n)
|
y |
a vector of responses. |
d |
a vector of heteroscedasticity. |
x |
a design matrix. |
n |
number of points to interpolate along. |
A list of objects created by ggplot2.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.