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

Equivalent of Biogeme Correlation of Coefficients Table? #40

Open
b-tomhave opened this issue Jun 24, 2019 · 3 comments
Open

Equivalent of Biogeme Correlation of Coefficients Table? #40

b-tomhave opened this issue Jun 24, 2019 · 3 comments

Comments

@b-tomhave
Copy link

First, thank you for your excellent work on PyLogit, it is immensely useful! This may already exist but is there a way in which to produce an equivalent of the Biogeme correlation of coefficients table? I am aware that the covariance matrix can be obtained in Pylogit by negating the hessian and then inverting, but is there a way in which to include the t-statistics and p-values?

Thanks!

@timothyb0912
Copy link
Owner

@benjamint17 : no worries, thanks for using the package!

As for the request, it can probably be added. Do you have any references or pointers to Biogeme code (hopefully in something more readable than C...) where the t-stats and p-values are calculated for the correlation of coefficients table? I'm looking for a formula or derivations I can rely on instead of having to re-derive the distributions.

@b-tomhave
Copy link
Author

Thanks for the rapid response! I don't have direct references to the Biogeme code, however, the equations for the t-statistics etc. are listed on page 13 of the attached Biogeme documentation. For example, equation 9 on page 13 yields the t-stat values given by Biogeme. Does that help?

http://transp-or.epfl.ch/pythonbiogeme/documentation/pythonfirstmodel/pythonfirstmodel.pdf

@timothyb0912
Copy link
Owner

timothyb0912 commented Jun 25, 2019

Yep, that's perfect. It should be relatively easy to produce the same table of results.

I have some other dev tasks that have been taking way too much time so I may not get to this quickly (i.e. possibly not in July).

If you want to open a PR that builds the desired table, I'd be happy to review, provide pointers, answer questions, etc.

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

2 participants