Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Problem with variables in glamm
From
Richard Williams <[email protected]>
To
[email protected], "[email protected]" <[email protected]>
Subject
Re: st: Problem with variables in glamm
Date
Mon, 07 Oct 2013 09:04:00 -0500
Actually, it sounds to me like Alice wants to run a fractional logit
model, where the dependent variable ranges between 0 and 1. This
could be for something like, say, proportion of employees who
participate in a pension plan. glm can run such models (for non-panel
data). But if you tried to run that same model with logit, all of the
non-zero non-missing cases would get recoded to 1. I don't know
gllamm but it sounds like gllamm may work more like logit that it
does glm. Even if gllamm seems to be running I would want to make
sure all the non-zero cases aren't getting recoded to 1.
At 07:30 AM 10/7/2013, William Buchanan wrote:
If your dependent variable is binary (like it is implied by the info
you provide), then the only values it should take are 0 & 1. Beyond
that it isn't exactly clear what your specific problem is. You
should also include the _exact_ syntax you enter and the exact
message/output provided by Stata.
Sent from my iPhone
> On Oct 7, 2013, at 6:53, "Alice Dalton (MED)" <[email protected]> wrote:
>
> Dear Statlist,
>
> I'm having a problem with the gllamm program (family(binomial)
link(logit)).
>
> 1. My dependant variable (a proportion) will only work if the
variable contains a zero, otherwise I get an r(2000) (no observations) error
>
> 2. Adding binary explanatory variables (eg a health variable
where 1 excellent, 0 not excellent) results in the message
'variables have been dropped, can't continue' and an r(198) error.
The null model works; the null model works with continuous
variables added in; the null model plus one or more binary variables fails.
>
> The command I am using is gllamm [depvar] [varlist],
i(ParticipantId) family(binomial) link(logit). I have 276 cases and
129 variables (not all of which are added to the model).
>
> If anyone with experience of gllamm has an idea of what is
happening here, I would be most grateful to hear it.
>
> Thank you!
>
> Alice Dalton
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: [email protected]
WWW: http://www.nd.edu/~rwilliam
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/