Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: re:re:re:re:re:Re: panel data hausman negative


From   paula garcia <[email protected]>
To   [email protected]
Subject   st: re:re:re:re:re:Re: panel data hausman negative
Date   Thu, 2 Oct 2003 07:07:01 -0400

Thanks also for your help, Nick! However, I still have the same problem. The   was a typo in the message, I had it in the code. I have changed the _N, but still get the error.

. tokenize `varlist'

. local i 1

. while "``i''" != "" {
  2. qui by `id': gen double mean`i' = sum(``i'') / _n
  3. qui by `id': replace mean`i' = mean`i'[_N]
  4. qui by `id': gen double diff`i' = ``i'' - mean`i'
  5. local newlist `newlist' mean`i' diff`i'
  6. 
. local i = `i'   1
  7. }
if not found
r(111);

end of do-file
r(111);

Thanks,
Paula


_________________________________________________________
http://www.latinmail.com.  Gratuito, latino y en espa´┐Żol.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index