powered by
cv_all calculate the CV optimal beta in the problem 1/n |y - X beta|^2 + 1/nu |D beta - gamma|^2 + lambda |gamma|_1.
cv_all(X, y, D, option)
beta_hat: CV optimal beta
stat_cv: various intermedia statistics
the design matrix
the response vector
the linear transform
options for screening