Return a regularized fit to a linear regression model.
Parameters: | method : :
alpha : scalar or array-like
start_params : array-like
refit : bool
|
---|---|
Returns: | A results object. : |
Notes
The penalty is the elastic net penalty, which is a combination of L1 and L2 penalties.
The function that is minimized is: ..math:
-loglike/n + alpha*((1-L1_wt)*|params|_2^2/2 + L1_wt*|params|_1)
where |*|_1 and |*|_2 are the L1 and L2 norms.
Post-estimation results are based on the same data used to select variables, hence may be subject to overfitting biases.
The elastic_net method uses the following keyword arguments: