4.1.2.1.2. statsmodels.base._constraints.fit_constrained_wrap

statsmodels.base._constraints.fit_constrained_wrap(model, constraints, start_params=None, **fit_kwds)[source]

fit_constraint that returns a results instance

This is a development version for fit_constrained methods or fit_constrained as standalone function.

It will not work correctly for all models because creating a new results instance is not standardized for use outside the fit methods, and might need adjustements for this.

This is the prototype for the fit_constrained method that has been added to Poisson and GLM.