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]

st: bayesmlogit


From   Milena Przheska <[email protected]>
To   [email protected]
Subject   st: bayesmlogit
Date   Wed, 21 Aug 2013 17:09:14 +0200

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/


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