View source: R/plot.regmed.grid.R
plot.regmed.grid | R Documentation |
Creates 2 plots: (1) BIC vs. lambda, and (2) Coefficients Alpha and Beta of mediator vs. lambda.
## S3 method for class 'regmed.grid' plot(x, as.log=FALSE, ...)
x |
regmed.grid object, returned by the |
as.log |
Logical; if TRUE, plot lambda on the log scale |
... |
optional arguments for plot method |
nothing is returned
Dan Schaid, Greg Jenkins, Jason Sinnwell
regmed.grid
,
data(medsim) fit.grid <- regmed.grid(x[,1], med[,1:10], y[,1], lambda.vec= c(seq(from=1, to=0, by = -.1)), frac.lasso=.8) summary(fit.grid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.