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

vcov.fastglm - Variance covariance matrix of fitted parameters #10

Open
legaultmarc opened this issue Sep 23, 2020 · 1 comment
Open

Comments

@legaultmarc
Copy link

Hello,

I was wondering if you had any pointer on how you would estimate the variance-covariance matrix of the fitted parameters (like vcov.glm).

I would be willing to contribute a PR, but would need a little bit of help getting started.

Thank you for this awesome project!

@jaredhuling
Copy link
Owner

In general, with glms, the estimated variance-covariance matrix comes from $(X'WX)^{-1}$ from the last iteration of IRLS. Since the fastglm package offers different methods for solving the weighted least squares problem at each step (each method is a different decomposition such a Cholesky, QR, etc), each one would require slightly different code for returning the appropriate matrix inverse. The WLS solving happens in src/glm.h from lines 295 to 424. Some partial clues towards how this can be done are in lines 426-473. The matrix decomposition documentation for Eigen will also be helpful decomposition catelog and lin alg tutorial

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

No branches or pull requests

2 participants