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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: xtpoisson -- error


From   Ivan Png <iplpng@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: xtpoisson -- error
Date   Tue, 15 Nov 2011 07:56:50 +0800

Many thanks, Rrof Williams.

I updated and it now works :)
Thanks also for the tip on factor variables.



On Tue, Nov 15, 2011 at 7:24 AM, Richard Williams
<richardwilliams.ndu@gmail.com> wrote:
> At 06:01 PM 11/14/2011, Ivan Png wrote:
>>
>> Dear STATAlist:
>>
>> I'm running xtpoisson and keep encountering an error message
>> "factor variables and time-series operators not allowed in option xvars()"
>>
>> My code:
>>
>> . global explvar bkval_ln mktval_ln revt_ln at_ln
>> . global fixedeff i.sic i.year
>>
>> . set matsize 1000
>> . xtset gvkey year
>>
>> . xi: xtpoisson move cnc_alt $explvar $fixedeff , fe i(gvkey) vce(robust)
>>
>> I'm using STATA-11.  It runs through about 12 iterations then stops,
>> giving me the error message,
>> ""factor variables and time-series operators not allowed in option
>> xvars()".
>>
>> I would appreciate your help.
>
> According to the Stata 11 update 01jul2010, "xtpoisson with options fe and
> vce(robust) failed when factor variables were used.  This has been fixed."
> So, my guess is you don't have the most current version of Stata. On my
> computer,
>
> . update query
> (contacting http://www.stata.com)
>
> Stata executable
>    folder:               C:\Program Files (x86)\Stata11\
>    name of file:         StataSE-64.exe
>    currently installed:  01 Sep 2011
>    latest available:     01 Sep 2011
>
> Ado-file updates
>    folder:               C:\Program Files (x86)\Stata11\ado\updates\
>    names of files:       (various)
>    currently installed:  01 Sep 2011
>    latest available:     01 Sep 2011
>
> Utilities updates
>    folder:               C:\Program Files (x86)\Stata11\utilities
>    names of files:       (various)
>    currently installed:  01 Sep 2011
>    latest available:     01 Sep 2011
>
> Recommendation
>    Do nothing; all files up to date.
>
>
>
> -------------------------------------------
> Richard Williams, Notre Dame Dept of Sociology
> OFFICE: (574)631-6668, (574)631-6463
> HOME:   (574)289-5227
> EMAIL:  Richard.A.Williams.5@ND.Edu
> WWW:    http://www.nd.edu/~rwilliam
>
> *
> *   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/
>



-- 
Best wishes
Ivan Png
Skype: ipng00
T: +1 603 646 8995

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