plot.qrglasso.predict {QuantRegGLasso}R Documentation

Display Predicted Coefficient Functions from qrglasso

Description

Visualize the predicted coefficient functions selected by BIC.

Usage

## S3 method for class 'qrglasso.predict'
plot(x, ...)

Arguments

x

An object of class qrglasso.predict for the plot method.

...

Additional parameters not used directly.

Value

NULL

See Also

qrglasso

Examples

set.seed(123)
n <- 100
p <- 5
L <- 5
Y <- matrix(rnorm(n), n, 1)
W <- matrix(rnorm(n * p * (L - 1)), n, p * (L - 1))

# Call qrglasso with default parameters
result <- qrglasso(Y = Y, W = W, p = p)

# Predict the top-k coefficient functions
estimate <- predict(result, top_k = 2)

# Display the predicted coefficient functions
plot(estimate)


[Package QuantRegGLasso version 1.0.0 Index]