cv_all: calculate the CV optimal beta

View source: R/cv_all.R

cv_allR Documentation

calculate the CV optimal beta

Description

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.

Usage

cv_all(X, y, D, option)

Arguments

X

the design matrix

y

the response vector

D

the linear transform

option

options for screening

Value

beta_hat: CV optimal beta

stat_cv: various intermedia statistics


SplitKnockoff documentation built on Oct. 14, 2024, 5:09 p.m.