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   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: bayesmlogit
Date   Wed, 21 Aug 2013 16:16:10 +0100

-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/


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