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   Richard Williams <richardwilliams.ndu@gmail.com>
To   statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu
Subject   Re: st: xtpoisson -- error
Date   Mon, 14 Nov 2011 18:10:19 -0500

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.

Why are you using xi:? Stata 11 supports factor variables. I would drop the xi. I would also run -update all- to make sure Stata was 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/


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