Skip to content

ENH: testing log-normal or Box-Cox transformed versus normal model #7198

Open

Description

@josef-pkt

https://stackoverflow.com/questions/65117280/how-to-apply-statsmodels-stats-diagnostic-compare-j-test-for-linear-and-log-line

interesting question with not immediate specification test in statsmodels

Vuong test for non-nested models should apply.

But AFAIR, the loglike would have to take the distribution of y into account, not of log(y).
Using loglike of normal for log(y) is missing thejacobian/derivative of the transformation in the likelihood function.
For log-normal this is just factor 1 / y
https://en.wikipedia.org/wiki/Log-normal_distribution

related: #4217 and my notebook for parametric survival model for t and log(t)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions