Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design: register a transform in fit for results #2373

Open
josef-pkt opened this issue Apr 26, 2015 · 0 comments
Open

Design: register a transform in fit for results #2373

josef-pkt opened this issue Apr 26, 2015 · 0 comments

Comments

@josef-pkt
Copy link
Member

Just an idea, I don't know yet whether this is feasible.

use case:
In penalized estimation, the penalization is often calibrated or predefined for standardized coefficients, standardized data (rescaled exog).

If the user uses a transformation prior to creating the model, then it might still be of interest to have the results, tests and reports for the original scale. That is we fit in one parameterization or scaling and have the Results using a different one.

This is a generalization of fit_constrained and fit_transformed that allows user to use only the second half of the transformation.

Problem with this:

While it is easy to transform params and cov_params, there are many results that directly depend on the attached exog, like fittedvalues, resid, rsquared and similar. The attached exog would have the wrong scaling, if the user rescaled it.

fit_constrained and fit_transformed use an auxiliary model that contains the transformed data, but still has the original data in the main model.

(Doesn't sound good anymore.)

correction

If only exog is transformed but not endog, then fittedvalues and resid would still be independent of linear or affine transformation of exog.
Predict, Margins and others would depend on the original scaling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant