docs/functions/estimate_num_factors.md

estimate_num_factors

Estimate the number of factors needed for the SPEAR model given a list of datasets X

Description

Estimate the number of factors needed for the SPEAR model given a list of datasets X

Usage

estimate_num_factors(
  X,
  num.iterations = 10,
  max.num.factors = NULL,
  min.num.factors = NULL,
  seed = NULL,
  SNR = 0.1,
  quiet = FALSE
)

Arguments

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



jgygi/SPEAR documentation built on July 5, 2023, 5:35 p.m.