decorrelate.train
function on a training data setThis function decorrelates the test dataset by adjusting data for the effects of latent factors of dependence, after running the decorrelate.train
function on a training data set.
decorrelate.test(faobject,data.test)
An object returned by function decorrelate.train
.
A list containing the testing dataset, with the following component: x
is a n x p matrix of explanatory variables, where n stands for the testing sample size and
p for the number of explanatory variables.
Returns a list with the following elements:
Group means estimated after iterative decorrelation
Decorrelated training data
Decorrelated testing data
Estimation of the factor model parameters: specific variance
Estimation of the factor model parameters: loadings
Scores of the trainings individuals on the factors
Scores of the testing individuals on the factors
Recall of group variable of training data
Internal value (estimation of individual probabilities for the training dataset)
Internal value (estimation of individual probabilities for the testing dataset)
Internal value (classification model)
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. (2015), Stability of feature selection in classification issues for high-dimensional correlated data, Statistics and Computing.
# NOT RUN {
data(data.train)
data(data.test)
fa = decorrelate.train(data.train)
fa2 = decorrelate.test(fa,data.test)
names(fa2)
# }
Run the code above in your browser using DataLab