Description Usage Arguments Details Value Examples
Decorrelation of a matrix X, given a response variable Y.
1 |
X |
the matrix (or data.frame) of covariates, dimension n*p (n is the sample size, p the number of covariates). X must have colnames and rownames. |
Y |
the vector of the response, length n. |
tree |
the dendrogram of the covariates (object obtained before by the function clustering). By default, tree=NULL. |
nclust |
integer, the number of clusters in the covariates (1 by default). |
maxnbfactors |
integer, the maximum number of factors in the clusters. By default: maxnbfactors=10. |
The function X_decor applies the factor analysis method FAMT in the different clusters of variables. The clusters must have been defined before (with the function "clustering").
a matrix X.decorrele, with the same dimension, same rownames and same colnames than X.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.