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]

Re: st: AW: sort, xtlogit


From   Abhimanyu Arora <[email protected]>
To   [email protected]
Subject   Re: st: AW: sort, xtlogit
Date   Thu, 22 Jul 2010 17:05:01 +0200

For the record, though, here is the trace,

. set tr on

. xtlogit  protest_yesno  price L.price L.price_change fpi gdp_percap
pop  cl cl2  unempl_pc   urb_pop_pc
----------------------------------------------------------------------------------------------------------------------------------------------------------
begin xtlogit ---
- local XT_VV : display "version " string(_caller()) ", missing:"
- version 6.0, missing
- if _by() {
  local myby by `_byvars'`_byrc0':
  }
- `XT_VV' `myby' _vce_parserun xtlogit, panel wtypes(iw fw pw) mark(I
OFFset) : `0'
= version 10.1, missing:  _vce_parserun xtlogit, panel wtypes(iw fw
pw) mark(I OFFset) : protest_yesno  price L.price L.price_change fpi
gdp_percap  pop  cl cl2  unempl_pc
>   urb_pop_pc
  --------------------------------------------------------------------------------------------------------------------------------------------------
begin _vce_parserun ---
  - version 9
  - local version : di "version " string(_caller()) ":"
  - local bycall = _by()
  - _on_colon_parse `0'
  = _on_colon_parse xtlogit, panel wtypes(iw fw pw) mark(I OFFset) :
protest_yesno  price L.price L.price_change fpi gdp_percap  pop  cl
cl2  unempl_pc   urb_pop_pc
    ----------------------------------------------------------------------------------------------------------------------------------------------
begin _on_colon_parse ---
    - version 8.2
    - sreturn local before ""
    - sreturn local after ""
    - gettoken before after : 0, parse(":") bind match(par) quotes
    - if "`par'" != "" {
    = if "" != "" {
      local before `"(`before')"'
      }
    - if `"`before'"' == ":" {
    = if `"xtlogit, panel wtypes(iw fw pw) mark(I OFFset) "' == ":" {
      sreturn local after `"`after'"'
      exit
      }
    - while `"`COLON'"' != ":" & `"`after'"' != "" {
    = while `""' != ":" & `": protest_yesno  price L.price
L.price_change fpi gdp_percap  pop  cl cl2  unempl_pc   urb_pop_pc"'
!= "" {
    - gettoken COLON after : after, parse(":") bind match(par) quotes
    - if "`par'" != "" {
    = if "" != "" {
      local before `before' (`COLON')
      local COLON
      }
    - else if `"`COLON'"' != ":" {
    = else if `":"' != ":" {
      local before `"`before' `COLON'"'
      local COLON
      }
    - }
    - while `"`COLON'"' != ":" & `"`after'"' != "" {
    = while `":"' != ":" & `" protest_yesno  price L.price
L.price_change fpi gdp_percap  pop  cl cl2  unempl_pc   urb_pop_pc"'
!= "" {
      gettoken COLON after : after, parse(":") bind match(par) quotes
      if "`par'" != "" {
      local before `before' (`COLON')
      local COLON
      }
      else if `"`COLON'"' != ":" {
      local before `"`before' `COLON'"'
      local COLON
      }
      }
    - if `"`COLON'"' != ":" {
    = if `":"' != ":" {
      di as err "'' found were ':' expected"
      exit 198
      }
    - sreturn local before `"`before'"'
    = sreturn local before `"xtlogit, panel wtypes(iw fw pw) mark(I OFFset) "'
    - sreturn local after `"`after'"'
    = sreturn local after `" protest_yesno  price L.price
L.price_change fpi gdp_percap  pop  cl cl2  unempl_pc   urb_pop_pc"'
    ------------------------------------------------------------------------------------------------------------------------------------------------
end _on_colon_parse ---
  - local ZERO `"`s(before)'"'
  = local ZERO `"xtlogit, panel wtypes(iw fw pw) mark(I OFFset) "'
  - local 0 `"`s(after)'"'
  = local 0 `" protest_yesno  price L.price L.price_change fpi
gdp_percap  pop  cl cl2  unempl_pc   urb_pop_pc"'
  - quietly syntax [anything(equalok)] [if] [in] [fw aw pw iw] [,
VCE(string asis) VCE1(string asis) * ]
  - if `"`vce'"' == "" {
  = if `""' == "" {
  - MYRESULT
    ---------------------------------------------------------------------------------------------------------------------------------------
begin _vce_parserun.MYRESULT ---
    - args exit
    - sreturn local exit `"`exit'"'
    = sreturn local exit `""'
    -----------------------------------------------------------------------------------------------------------------------------------------
end _vce_parserun.MYRESULT ---
  - exit
  ----------------------------------------------------------------------------------------------------------------------------------------------------
end _vce_parserun ---
- if "`s(exit)'" != "" {
= if "" != "" {
  version 10: ereturn local cmdline `"xtlogit `0'"'
  exit
  }
- syntax [varlist(ts)] [if] [in] [iweight fweight pweight] [, RE FE PA
INTPoints(int 12) Quad(int 12) *]
not sorted
------------------------------------------------------------------------------------------------------------------------------------------------------------
end xtlogit ---
r(5);


On Thu, Jul 22, 2010 at 4:44 PM, Abhimanyu Arora
<[email protected]> wrote:
> Thanks for the hint Martin, I gave some more thought and played around
> with it and learnt a thing which could be useful to some statalisters.
> Even if the dataset is -xtset panelvar timevar- (whether saved or
> not),  and one generates new variables by panel, say by the difference
> operator, the dataset has to be -xtset- again (unchanged panelvar
> timevar)
> In my case, -xtlogit- worked, eventually.
> Best regards
> Abhimanyu
>
>
> On Thu, Jul 22, 2010 at 4:16 PM, Martin Weiss <[email protected]> wrote:
>>
>> <>
>>
>> Could have something to do with the lags in the independent vars
>> <http://www.stata.com/statalist/archive/2006-08/msg00613.html>, even though
>> -help xtlogit- clearly does allow -tsvarlist-s.
>>
>> I would say you
>>
>> *************
>> set tr on
>> *************
>>
>> and report the area around the error.
>>
>> HTH
>> Martin
>>
>> -----Ursprüngliche Nachricht-----
>> Von: [email protected]
>> [mailto:[email protected]] Im Auftrag von Abhimanyu Arora
>> Gesendet: Donnerstag, 22. Juli 2010 16:03
>> An: [email protected]
>> Betreff: st: sort, xtlogit
>>
>> Dear statalist
>>
>> I am trying to use the command -xtlogit- and I get a puzzling error
>> (pls click on the link below). As you would see, I have sorted my data
>> but upon running -xtlogit- I get error r(5) not sorted. What can I be
>> missing?
>>
>> http://screencast.com/t/MDlkZjk4ZjUt
>>
>> Best regards
>> Abhimanyu
>> *
>> *   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/
>>
>>
>> *
>> *   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/
>>
>

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index