Description Usage Arguments Details Value Examples
Summary method for class "MHLS".
1 2 |
object |
an object of class "MHLS", which is a result of |
... |
additional arguments affecting the summary produced. |
This function provides a summary of each sampled beta and subgradient.
mean, median, standard deviation, 2.5% quantile and 97.5% quantile for each beta and its subgradient.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #' set.seed(123)
n <- 10
p <- 5
X <- matrix(rnorm(n * p), n)
Y <- X %*% rep(1, p) + rnorm(n)
sigma2 <- 1
lbd <- .37
weights <- rep(1, p)
LassoResult <- Lasso.MHLS(X = X, Y = Y, lbd = lbd, type = "lasso", weights = weights)
B0 <- LassoResult$B0
S0 <- LassoResult$S0
summary(MHLS(X = X, PE = rep(0, p), sig2 = sigma2, lbd = lbd,
weights = weights, B0 = B0, S0 = S0, niter = 50, burnin = 0,
type = "coeff"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.