statsmodels.multivariate.factor.Factor.fit#
- Factor.fit(maxiter=50, tol=1e-08, start=None, opt_method='BFGS', opt=None, em_iter=3, rng=None)[source]#
Estimate factor model parameters.
- Parameters:
- maxiter
int Maximum number of iterations for iterative estimation algorithms
- tol
float Stopping criteria (error tolerance) for iterative estimation algorithms
- startarray_like
Starting values, currently only used for ML estimation
- opt_method
str Optimization method for ML estimation
- optdict-like
Keyword arguments passed to optimizer, only used for ML estimation
- em_iter
int The number of EM iterations before starting gradient optimization, only used for ML estimation.
- rng{
None,int, array_like[int],numpy.random.Generator,numpy.random.RandomState},optional If rng is None, a new
Generatoris created using fresh entropy from the operating system. If rng is an int or array of ints, a newGeneratoris created, seeded with rng. If rng is already aGeneratororRandomStateinstance, that instance is used. Only used for ML estimation to generate starting values when start is None.
- maxiter
- Returns:
FactorResultsResults class instance.