[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Estimating glm w/log and gaussian, was RE: transforming predictions from loglinear models
The error message suggests to me that the issue
lies in how this is embedded in the surrounding
code, not visible here. -glm- can throw you out
for all sorts of reasons, but not I think in
this style. In any case, the code looks plausible
to me. -link(log) family(gaussian)- is a common
Incidentally, the logit link is the default for
the binomial family.
> I have tried to use the glm w/ log link to estimate a model
> of earnings.
> I am using stata8.2. I get an r(198) "invalid 'glm'" error. My code
> > glm adj04p1
> > bm wm bf wf yrsed age age2,
> > link(log) family(gaussian)
> > noconstant cluster(statefip) ;
> invalid 'glm'
> Although I believe binomial is the canonical family for log link, I
> thought one could specify other families, including gaussian, instead.
> (FYI Age was centered and then age-squared was calculated, so those
> variables are not collinear). But, it does not seem to work.
> As far as I
> can tell, my variables are fine, they work in other models without a
> problem (e.g., regress, estimated just before the glm).
* For searches and help try: