bridge {rbridge} | R Documentation |
Fit a Bridge Estimation
Description
Fit a bridge penalized maximum likelihood.
It is computed the regularization path which is consisted of lasso
or ridge
penalty
at the a grid values for lambda
Usage
bridge(X, y, q = 1, lambda.min = ifelse(n > p, 0.001, 0.05),
nlambda = 100, lambda, eta = 1e-07, converge = 10^10)
Arguments
X |
Design matrix. |
y |
Response vector. |
q |
is the degree of norm which includes ridge regression with |
lambda.min |
The smallest value for lambda if |
nlambda |
The number of lambda values - default is |
lambda |
A user supplied lambda sequence. By default, the program compute a squence of values the length of nlambda. |
eta |
is a preselected small positive threshold value. It is deleted |
converge |
is the value of converge. Defaults is |
Details
Computes bridge estimation
Value
An object of class rbridge, a list with entries
betas |
Coefficients computed over the path of lambda |
lambda |
The lambda values which is given at the function |
Author(s)
Bahadir Yuzbasi, Mohammad Arashi and Fikri Akdeniz
Maintainer: Bahadir Yuzbasi b.yzb@hotmail.com
See Also
Examples
set.seed(2019)
beta <- c(3, 1.5, 0, 0, 2, 0, 0, 0)
p <- length(beta)
beta <- matrix(beta, nrow = p, ncol = 1)
n = 100
X = matrix(rnorm(n*p),n,p)
y = X%*%beta + rnorm(n)
model1 <- bridge(X, y, q = 1)
print(model1)
model2 <- bridge(X, y, q = 2)
print(model2)