Description Usage Arguments Value Author(s) References See Also Examples
View source: R/decorrelate.test.R
This 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.
1 | decorrelate.test(faobject,data.test)
|
faobject |
An object returned by function |
data.test |
A list containing the testing dataset, with the following component: |
Returns a list with the following elements:
meanclass |
Group means estimated after iterative decorrelation |
fa.training |
Decorrelated training data |
fa.testing |
Decorrelated testing data |
Psi |
Estimation of the factor model parameters: specific variance |
B |
Estimation of the factor model parameters: loadings |
factors.training |
Scores of the trainings individuals on the factors |
factors.testing |
Scores of the testing individuals on the factors |
groups |
Recall of group variable of training data |
proba.training |
Internal value (estimation of individual probabilities for the training dataset) |
proba.testing |
Internal value (estimation of individual probabilities for the testing dataset) |
mod.decorrelate.test |
Internal value (classification model) |
Emeline Perthame, Chloe Friguet and David Causeur
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.
FADA-package
FADA
glmnet-package
1 2 3 4 5 | data(data.train)
data(data.test)
fa = decorrelate.train(data.train)
fa2 = decorrelate.test(fa,data.test)
names(fa2)
|
Loading required package: MASS
Loading required package: elasticnet
Loading required package: lars
Loaded lars 1.2
[1] "Number of factors: 3 factors"
[1] "Objective criterion: "
[1] 0.05912524
[1] 1.603967
[1] 0.001050686
[1] 0.0004215778
[1] "meanclass" "fa.training" "fa.testing"
[4] "Psi" "B" "factors.training"
[7] "factors.testing" "groups" "proba.training"
[10] "proba.testing" "mod.decorrelate.test" "data.train"
[13] "maxnbfactors" "min.err" "EM"
[16] "maxiter"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.