estimate_num_factors
Estimate the number of factors needed for the SPEAR model given a list of datasets X
Estimate the number of factors needed for the SPEAR model given a list of datasets X
estimate_num_factors(
X,
num.iterations = 10,
max.num.factors = NULL,
min.num.factors = NULL,
seed = NULL,
SNR = 0.1,
quiet = FALSE
)
Argument |Description
------------- |----------------
X
| Either a list of N x P matrices (N = samples, P = features) or a concatenated matrix that is N x P.
num.iterations
| How many iterations to run to get average number of factors? Defaults to 10
.
max.num.factors
| Maximum number of factors? If NULL
(default), will return floor(N/10)
where N
= number of samples in X
min.num.factors
| Minimum number of factors? If NULL
(default), will calculate from SVD.
seed
| An integer provided for reproducibility, defaults to NULL
(will not set seed)
SNR
| Parameter [[ADD??]]
quiet
| Silence print updates? Default is FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.