statsmodels.multivariate.factor.FactorResults.factor_scoring¶
-
FactorResults.factor_scoring(endog=
None
, method='bartlett'
, transform=True
)[source]¶ factor scoring: compute factors for endog
If endog was not provided when creating the factor class, then a standarized endog needs to be provided here.
- Parameters:¶
- method‘bartlett’ or ‘regression’
Method to use for factor scoring. ‘regression’ can be abbreviated to reg
- transformbool
If transform is true and endog is provided, then it will be standardized using mean and scale of original data, which has to be available in this case. If transform is False, then a provided endog will be used unchanged. The original endog in the Factor class will always be standardized if endog is None, independently of transform.
- Returns:¶
- factor_score
ndarray
estimated factors using scoring matrix s and standarized endog ys
f = ys dot s
- factor_score
Notes
Status: transform option is experimental and might change.
Last update:
Dec 23, 2024