Description Usage Arguments Value Examples
View source: R/scalescad_mcp.R
The scaled penalized methods with the minimax concave penalty(MCP) or smoothly clipped absolute deviation penalty(SCAD).
1 | scalescad_mcp(X, y, lam0, method)
|
X |
X is an n by p design matrix where n is the sample size and p is the data dimension. |
y |
Y is the n dimensional response vector. |
lam0 |
the initial value of penalty level. |
method |
the penalized methods,can be "scad" or "mcp". |
hsigma the estimated noise level
coefficients the estimated coefficients
1 2 3 4 5 6 7 8 9 10 | ## Not run:
n<-200;p<-2000
data<-datageneration(n,p,0)
X<-data$X
Y<-data$Y
lam0<-sqrt(2*log(p)/n)
mcp<-scalescad_mcp(X,Y,lam0,method="mcp")
sigma<-mcp$hsigma
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.