plot.HMT | R Documentation |
HMT
functionPlot the path obtained from HMT
function
## S3 method for class 'HMT'
plot(
x,
log.lambda = FALSE,
lambda.lines = FALSE,
lambda.opt = c("min", "max", "both"),
...
)
x |
|
log.lambda |
If TRUE, use log(lambda) instead of lambda in abscissa |
lambda.lines |
If TRUE, add vertical lines at lambda values |
lambda.opt |
If there is several optimal lambdas, which one to print "min", "max" or "both" |
... |
Other parameters for plot function |
HMT
set.seed(42)
# Simulate gaussian data with block-diagonal variance matrix containing 12 blocks of size 5
X <- simuBlockGaussian(50, 12, 5, 0.7)
# Generate a response variable
y <- X[, c(2, 7, 12)] %*% c(2, 2, -2) + rnorm(50, 0, 0.5)
# Apply MLGL method
res <- MLGL(X, y)
out <- HMT(res, X, y)
plot(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.