cleaning.ridge: Cleaning.ridge

Description Usage Arguments Value Author(s) Examples

Description

Cleaning.ridge

Usage

1
2
cleaning.ridge(X,y,screening=NULL,lambda1=0,lambda2=0,alpha,beta=rep(1,ncol(X)),
nbIter=1000,group=1:ncol(X),penalty="quadrupen",scale=FALSE,center=TRUE)

Arguments

X

a matrix object with n*p size representing the data

y

a vector of size p representing the output variable

screening

object issued from the screening or screening.group functions. If is not NULL then the beta.min, lambda1.min, lambda2.min, penalty type informations contained in this object will be used instead the beta main parameter. Default is NULL.

lambda1

The l1 penalty to used.

lambda2

The l2 penalty to use in case of elatic-net for screening.

alpha

The α mixing parameter to use in case of sparse group lasso for screening or if glmnet is used for screening.

beta

a vector of size p representing the weight of variable. A variable with weight equal to zero signify will not appear in the ordinary least square regression. No constraint to the number of variables with a non-zero weight.

nbIter

Number of iterations used to simulate the null hypothesis law. Bigger is better. Default is 1000. Could be less with the gamma law approximation.

group

a vector of size p representing the group index for each variables. Default is 1:ncol(X) which represent the particular case whit no group. Warning : this vector must be in ascending group order and variables ordered in this sense.

penalty

a string of characters to determine the adaptive ridge specific penalty to be used. This should be one of "quadrupen" to elastic-net by quadrupen package, "glmnet" to elastic-net by glmnet package, "grplasso" to group lasso by grplasso package and "SGL" to sparse group lasso by SGL package at screening. By default is "quadrupen".

scale

a boolean to indicate if X and y will be scaled. Default is FALSE.

center

a boolean to indicate if X and y will be centered. Default is TRUE.

lawWithOne

a boolean to indicate if one distribution under the null hypothesis for all groups of variables could be used instead of one distribution for each of them. Warning : It is an approximation and that work only if all groups have the same size. Default is FALSE.

Value

An object of class 'cleaning' with pvalue for each variables or group variables. Two pvalues are given, the first is estimates on the real distribution of F-statistic under the null hypothsesis, the second pval.gamma is estimates on the gamma low fitting on the real distribution of F-statistic. This approximation could be used to minimize the number of needed iteration. Contains equally estimates of adaptive ridge, F statistics on estimates and F statistics simulated under the H0 model.

Author(s)

JM BECU

Examples

1
 # see ridgeAdap help

jbecu/ridgeAdap documentation built on May 18, 2019, 5:58 p.m.