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

What is the subspace in the final output of mhglm() #4

Open
pingqingsheng opened this issue Nov 27, 2016 · 1 comment
Open

What is the subspace in the final output of mhglm() #4

pingqingsheng opened this issue Nov 27, 2016 · 1 comment

Comments

@pingqingsheng
Copy link

Hi,
I'm trying to use this package in my course project, but I can't find corresponding value of "subspace" in the final output to its counterpart in the paper.
What is the subspace in the final output of mhglm() ? I thought it was the right singular matrix (full column rank part) of the data matrix, that is V_i, but it isn't.

Could someone gives me brief explanation ?

Thanks

@patperry
Copy link
Owner

patperry commented Nov 28, 2016

The subspace and precision give you the eigendecomposition of the group-specific precision matrix (corresponding to V_i and D_i^{-2} in the paper). These are computed using the precision matrix returned from firthglm.fit.

The description of V_i and D_i in section 3.4 of the paper is slightly different than in the R package. Up to numerical error, you will get the same weights with either choice, but in the paper's version, D_i is not diagonal.

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