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: Error message using Tabout and regressions by year command
From
Alice Jones <[email protected]>
To
[email protected]
Subject
st: Error message using Tabout and regressions by year command
Date
Wed, 1 Feb 2012 15:59:34 +0000
Hello all,
I am currently working with a panel dataset of companies over a period
of 9 years. I need to run regressions on a year-by year basis
including a lag of the independent variable. Using this command in
Stata 11:
"bysort year: regress growth L.size",
I get this error message:
"r(5) Not sorted".
However, running the same command without a lag in the model works
perfectly. I need help with how to run the regressions as the
inclusion of lags is critical to my analysis.
Secondly in using the "Tabout" command,entering "Tabout" produces a
table but when entering the following command afterwards to format the
table:
"replace cells(fcount fper fcum) format(%9.0fc %9.1f %9.2f)"
yields this message:
"time-series operators not allowed r(101)"
I xtset the data prior to running Tabout and even tsset again after
getting message first time but still getting same error message.
Is there something wrong with the commands I ran?
I'll be glad for any help I can get with this.
Regards,
Alice
*
* 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/