Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Mixed Logit Problem


From   Eric Booth <ebooth@ppri.tamu.edu>
To   "<statalist@hsphsun2.harvard.edu>" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Mixed Logit Problem
Date   Sun, 15 May 2011 22:46:50 +0000

<>

I can't reproduce this error; -mixlogit- (from SSC) doesn't give an error when specifying the cluster() option in the example below.
Be sure you've got the latest version downloaded (v1.2.2 oct2010) and if it's still giving you this error, try using -trace-
to identify what causing it (-set trace on-).

********!
sysuse auto, clear
bys rep78: g choice = 1 if _n==2
recode choice (.=0)
egen i = group(rep78)

mixlogit choice price wei, group(rep78) rand(headr) ///
   id(i)  nrep(50) cluster(mpg) robust
*******!
- Eric

__
Eric A. Booth
Public Policy Research Institute
Texas A&M University
ebooth@ppri.tamu.edu
Office: +979.845.6754


On May 15, 2011, at 5:03 PM, Ramón Cornejo wrote:

> Dear all,
> 
> I have the follow problem, when I run the mixedlogit command, appears
> this message:
> 
> mixlogit choice xi_cero alfa4_cero del180_cero per_cero xi_uno
> alfa4_uno del180_uno per_uno, group(time) id(newid) rand(cero uno)
> nrep(50) cluster(newid);
> option cluster() not allowed;
> r(198);
> 
> In advance, best regards.
> 
> RCM
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/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/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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