ComputeSCA | R Documentation |
The function computes the solution of a special configuration of Sparce PCA (called SParse Variable PCA; SVPCA). Instead of imposing zeros on individual elements of a loading matrix, all elements of a certain role (i.e. variables) are imposed to zero
ComputeSCA( data, r, n_sparvar, rational = 1, num_starts = 10, MAXITER = 1000, stop_value = 0.001 )
data |
the orginal dataset on which SVPCA operates |
r |
number of components |
n_sparvar |
number of variables that have all zero loadings |
rational |
whether using rational starts (1, the default value) or random starts (0). The number of rational starts is fixed at 1. Otherwise, the number of starts is given by num_starts. |
num_starts |
the number of random starts used when |
MAXITER |
the maximum number of iterations. The default value is 1000 |
stop_value |
the convergence criteria. The default value if 1e-3 |
a list that contains three elements: the total loss value, the score matrices as well as the loading matrices
ncluster <- 3 nnoisevar <- 100 ComputeSCA(dataset, n.cluster, n.noisevar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.