From | Roger Newson <[email protected]> |
To | [email protected] |
Subject | Re: st: gamma constraints using glm |
Date | Wed, 17 Jul 2002 17:31:01 +0100 |
At 16:24 17/07/02 +0100, Toby Andrew wrote:
Dear Statalist,You don't specify why you wish to do this. However, a chi-squared distribution with k degrees of freedom is simply a gamma distribution with inverse squared coefficient of variation k/2 and scale parameter 1/2, or, equivalently, with mean k and variance of 2k. If you don't want to constrain k to be an integer, then you are effectively using the Poisson variance function variance=phi*mu, fixing phi=2. If you want to constrain k to be an integer, then you are getting outside the framework of generalized linear models.
Could anyone tell me how to constrain a gamma distribution to chi-squared using GLM in Stata 7.0?
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |