Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: gllamm


From   Hind Sbihi <sbihi@interchange.ubc.ca>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: gllamm
Date   Thu, 10 Apr 2008 10:27:58 -0700 (PDT)

Hi Stella 

you probably want to add the xi statement before your command

xi: gllamm alternative i.age i.rate , i(individual) link(mlogit) expanded(individual choice o)
where age and rate are your categorical variables
Stata will take care of creating dummy variables for you

HTH

Hind

-----Original Message-----

> Date: Thu Apr 10 10:16:37 PDT 2008
> From: "Stella Capuano" <stella.capuano@unito.it>
> Subject: st: gllamm
> To: statalist@hsphsun2.harvard.edu
>
> Dear Statalisters,
> I have problems with stata command gllamm: it says that the likelihood
> cannot be computed because missing values were encountered during the
> computation. I don't understand what it means (my data do not have missing
> values).
> I have, hopefully correctly, reshaped the data in this way
> individual alternative choice
> 1                1            0
> 1                2            0
> 1                3            1
> 1                4            0
> etc...for each individual. The command I type is:
> gllamm alternative age1 age2 age3 age4 un_rate_1 un_rate_2 un_rate_3
> un_rate4, i(individual) link(mlogit) expanded(individual choice o)
> where age1, age2, age3, age4 are age dummies (each for one age category)
> and un_rate_1, un_rate_2, un_rate_3, un_rate_4 are regional unemployment
> rates (indeed the alternatives are regions.
> Honestly, I haven't understood properly what to specify in option i(),
> however I always get the same error message.
> Please, can anyone give me a hand?
> Thanks a lot,
> Stella
> --
> Stella Capuano
> c/o Collegio Carlo Alberto
> Via Real Collegio, 30
> 10024
> Moncalieri (TO)
> 
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index