Bookmark and Share

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   William Buchanan <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Problem with variables in glamm
Date   Mon, 7 Oct 2013 07:30:50 -0500

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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index