plot.regmed.grid {regmed}R Documentation

Plots for regmed.grid object.

Description

Creates 2 plots: (1) BIC vs. lambda, and (2) Coefficients Alpha and Beta of mediator vs. lambda.

Usage

## S3 method for class 'regmed.grid'
plot(x, as.log=FALSE, ...)

Arguments

x

regmed.grid object, returned by the regmed.grid() function

as.log

Logical; if TRUE, plot lambda on the log scale

...

optional arguments for plot method

Value

nothing is returned

Author(s)

Dan Schaid, Greg Jenkins, Jason Sinnwell

See Also

regmed.grid,

Examples

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)

[Package regmed version 2.1.0 Index]