FADA(faobject,nfold.cv, nbf.cv=NULL, method = c("glmnet", "sda", "sparseLDA"),
sda.method = c("lfdr", "HC"), stop.par = 10, lambda, lambda.var,
lambda.freqs, diagonal = FALSE, alpha = 0.1,nfolds = 10)
FA
.nfold.cv
is as large as the sample size and computes balanced cross validation otherwise.nbf = NULL
and the number of factors is estimated for each fold of the cross validation. nbf
can
also be set to a pomethod = "glmnet"
, a Lasso penalized logistic regression is performed using method = "sda"
, a LDA or DDA (seemethod="sda"
. If sda.method="lfdr"
,
variables are selected through CAT scores and False Non Discovery Rate control. If sda.method="HC", the variable selection
method is Higher Cristmethod="sparseLDA"
.method="sda"
.method="sda"
.method="sda"
.diagonal = TRUE
, an assumption of independence is made and a shrunken diagonal discriminant
analysis is performed using sda
R package. If diagonal = FALSE
, FADA performs
shrunken linear discriminant analysis and tnfolds=10
. The smallest value is nfolds = 3
. To perform
Leave-One-Out cross-validation,nfolds can be set Clemmensen, L., Hastie, T. and Witten, D. and Ersboll, B. (2011), Sparse discriminant analysis. Technometrics, 53(4), 406-413.
Friedman, J., Hastie, T. and Tibshirani, R. (2010), Regularization paths for generalized linear models via coordinate descent. Journal of Statistical Software, 33, 1-22.
Friguet, C., Kloareg, M. and Causeur, D. (2009), A factor model approach to multiple testing under dependence. Journal of the American Statistical Association, 104:488, 1406-1415.
Perthame, E., Friguet, C. and Causeur, D. (2014), Stability of feature selection in classification issues for high-dimensional correlated data, Submitted.
FADA
, FA
, sda
, sda-package
,
glmnet-package
data(data.train)
data(data.test)
# When testing data set is provided
res = FA(data.train, data.test)
classif = FADA(res,method="sda",sda.method="lfdr")
### Not run
# When no testing data set is provided
# res = FA(data.train)
# classif = FADA(res,nfold.cv = 30, method="sda",sda.method="lfdr")
Run the code above in your browser using DataLab