Bookmark and Share

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: Issues with xtsur


From   "Abdalla, Ahmed" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Issues with xtsur
Date   Fri, 24 Jan 2014 16:14:37 +0000

Dear Statalist
I try to use -xtsur- to fit a system of 4 equations of seemingly unrelated regressions.

**I tsset my data using the command-
tsset firmdi timeid

**I run the xtsur command-
xtsur(f.pred_ce pred_ce pos_ces wceq wdvc) ( f.pos_ces pred_ce pos_ces wceq wdvc) (f.wceq pred_ce pos_ces wceq wdvc) (f.wdvc pred_ce pos_ces wceq wdvc)

However I get this error message-
not sorted
               st_data():  3598  Stata returned error
              _xtsurub():     -  function returned error
                 <istmt>:     -  function returned error
r(3598);


My data is sorted and I tsset the panel data. Further more, I tried to run any fixed effect or random effect models on my data and it worked to properly, which means that Stata acknowledges that it is a panel dataset.

Again I tried the command-sureg and it worked properly :
sureg(f.pred_ce pred_ce pos_ces wceq wdvc) ( f.pos_ces pred_ce pos_ces wceq wdvc) (f.wceq pred_ce pos_ces wceq wdvc) (f.wdvc pred_ce pos_ces wceq wdvc)


Does anyone know what is the problem with xtsur here ?

Thanks







*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index