linearmodels.asset_pricing.model.LinearFactorModel.fit

LinearFactorModel.fit(cov_type: str = 'robust', debiased: bool = True, **cov_config: bool | int | str) LinearFactorModelResults[source]

Estimate model parameters

Parameters:
cov_type: str = 'robust'

Name of covariance estimator

debiased: bool = True

Flag indicating whether to debias the covariance estimator using a degree of freedom adjustment

**cov_config

Additional covariance-specific options. See Notes.

Returns:

Results class with parameter estimates, covariance and test statistics

Return type:

linearmodels.asset_pricing.results.LinearFactorModelResults

Notes

The kernel covariance estimator takes the optional arguments kernel, one of “bartlett”, “parzen” or “qs” (quadratic spectral) and bandwidth (a positive integer).