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: bayesmlogit


From   Matthew Baker <[email protected]>
To   [email protected]
Subject   Re: st: bayesmlogit
Date   Wed, 21 Aug 2013 12:35:02 -0400

Well, that was easy! Nothing like reading through email, finding that
there was a problem with your package, and that it was solved so
efficiently. But let me ask: is the "variable overflow" issue related
to bayesmlogit? It doesn't seem to be but I just wanted to be sure.

And thanks Nick!

Matt Baker

On Wed, Aug 21, 2013 at 12:13 PM, Milena Przheska
<[email protected]> wrote:
> Hi Nick,
>
> Thank you very much for your reply.
> The command did not return r(2000) after I encoded the variables, so
> your guess was spot on.
>
> It did return an error for variable overflow r(1400), but I know that
> is a totally different issue.
>
> I am relatively new to Stata, so I apologize if I violated some code
> of conduct or failed to supply appropriate reference in my previous
> message.
>
> In that regard, I would like to supplement my previous message with
> the reference to the package I used to run the command
>
> package bayesmlogit from http://fmwww.bc.edu/RePEc/bocode/b
> Author: Matthew Baker, Hunter College
>
> Once again, thank you very much.
>
> Best,
> Milena
>
>
>
> On Wed, Aug 21, 2013 at 5:16 PM, Nick Cox <[email protected]> wrote:
>> -bayesmlogit- (SSC) is user-written. Please remember to explain where
>> user-written programs come from.
>>
>> At a guess, your -rand- is a string variable but -bayesmlogit- wants
>> it to be numeric. If so, use -encode- to produce a numeric variable
>> with value labels.
>> Nick
>> [email protected]
>>
>>
>> On 21 August 2013 16:09, Milena Przheska
>> <[email protected]> wrote:
>>> Dear Statalist members,
>>>
>>> I got error "no observations" r(2000) after running -bayesmlogit-
>>>
>>> I have a data set that contains choices of subjects at 4 separate
>>> occasions, and a dependent variable - a dichotomous variable.
>>>
>>> The data set looks like this:
>>>
>>> id           time         prior           y
>>> 1               1              a            0
>>> 1               2              a            0
>>> 1               3              b            1
>>> 1               4              c            0
>>> 2               1               c           1
>>> 2               2               c           0
>>> 2               3               b           1
>>> 2               4               a           0
>>> 3               1               d           0
>>> 3                2              d           0
>>> 3                3              a           1
>>> 3                4              c           1
>>>
>>> The commands I ran were
>>>
>>> bayesmlogit y, group(time) identifier(id) rand(prior)
>>>
>>>
>>> and
>>>
>>>
>>> bayesmlogit y, group(id) identifier(id) rand(prior)
>>>
>>>
>>> Got the same error that there are no observations.
>>>
>>>
>>> Can anyone please explain why this error occurs?
>>>
>>>
>>> I appreciate your help and I thank you all in advance.
>>>
>>>
>>> Regards,
>>> Milena Przheska
>>> *
>>> *   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/
> *
> *   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/



-- 
Dr. Matthew J. Baker
Department of Economics
Hunter College and the Graduate Center, CUNY
*
*   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