Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • No observations error

    Hi, I am using Stata 17 and am doing estudy and my result showed no observation:

    . estudy $portfolio1, ///
    > datevar(date2) evdate(varnames ann_date2) dateformat(MDY) ///
    > modt(SIM) indexlist(mkt) diagn(BMP) price ///
    > eswlbound(-60) eswubound(-11) ///
    > lb1(-10) ub1(60) lb2(-10) ub2(0) lb3(0) ub3(60) dec(4)

    Event study with multiple event dates
    no observations
    r(2000);

    end of do-file

    r(2000);



    However, when I sum or describe: there are no missing data or string variables:

    . sum $portfolio1

    Variable | Obs Mean Std. dev. Min Max
    -------------+---------------------------------------------------------
    pr_gadang | 123 .6778049 .1598285 .46 1.02
    pr_kimlun | 123 1.298862 .0528407 1.11 1.41
    pr_mitra | 123 1.170732 .1195358 .87 1.35
    pr_ptaras | 123 3.50813 .2281944 3.06 3.9
    pr_aeon | 123 3.109675 .0842512 2.89 3.33
    -------------+---------------------------------------------------------
    pr_carlsbg | 123 12.71772 .8871993 11.44 14.48
    pr_cck | 123 .21 .0174149 .18 .25
    pr_fn | 123 18.71203 .667615 17.96 19.98
    pr_fiamma | 123 .6940653 .0324375 .62333 .77333
    pr_beshom | 123 1.503236 .0624581 1.33332 1.59998
    -------------+---------------------------------------------------------
    pr_jaycorp | 123 1.023821 .1539175 .815 1.39
    pr_rki | 123 3.579959 .1825081 3.15 4.025
    pr_ql | 123 2.064039 .0486699 1.94872 2.17949
    pr_dpharma | 123 1.034657 .1642756 .80357 1.27607
    pr_kossan | 123 1.489329 .1328506 1.2875 1.7675
    -------------+---------------------------------------------------------
    pr_topglov | 123 .8455015 .1777488 .62083 1.16
    pr_apm | 123 4.765691 .2877871 4.1 5.3
    pr_favco | 123 2.802683 .1291084 2.44 3.2
    pr_hevea | 123 .8282317 .1176341 .63 1.14
    pr_hexza | 123 .8769106 .0548415 .75 .985
    -------------+---------------------------------------------------------
    pr_jcbnext | 123 2.03065 .238072 1.49 2.375
    pr_skpres | 123 1.06452 .0927184 .832 1.24
    pr_tongher | 123 2.073984 .0778264 1.9 2.28
    pr_ibhd | 123 .5598374 .0422082 .495 .67
    pr_lbs | 123 .7164446 .0238655 .68182 .76364
    -------------+---------------------------------------------------------
    pr_tambun | 123 1.62626 .1922404 1.18 1.88
    pr_vstecs | 123 .7047561 .0858966 .52 .845
    pr_pos | 123 4.07187 .3528673 3.5 4.99
    pr_suria | 123 1.943225 .0805429 1.75 2.15




    . describe $portfolio1

    Variable Storage Display Value
    name type format label Variable label
    --------------------------------------------------------------------------------------------
    pr_gadang float %8.0g
    pr_kimlun float %8.0g
    pr_mitra float %8.0g
    pr_ptaras float %8.0g
    pr_aeon float %8.0g
    pr_carlsbg float %8.0g
    pr_cck float %8.0g
    pr_fn float %8.0g
    pr_fiamma float %8.0g
    pr_beshom float %8.0g
    pr_jaycorp float %8.0g
    pr_rki float %8.0g
    pr_ql float %8.0g
    pr_dpharma float %8.0g
    pr_kossan float %8.0g
    pr_topglov float %8.0g
    pr_apm float %8.0g
    pr_favco float %8.0g
    pr_hevea float %8.0g
    pr_hexza float %8.0g
    pr_jcbnext float %8.0g
    pr_skpres float %8.0g
    pr_tongher float %8.0g
    pr_ibhd float %8.0g
    pr_lbs float %8.0g
    pr_tambun float %8.0g
    pr_vstecs float %8.0g
    pr_pos float %8.0g
    pr_suria float %8.0g



    Really appreciate anyone's assistance on this.

    Thank you.

  • #2
    Code:
    . sum $portfolio1
    
        Variable |        Obs        Mean    Std. dev.       Min        Max
    -------------+---------------------------------------------------------
       pr_gadang |        123    .6778049    .1598285        .46       1.02
       pr_kimlun |        123    1.298862    .0528407       1.11       1.41
        pr_mitra |        123    1.170732    .1195358        .87       1.35
       pr_ptaras |        123     3.50813    .2281944       3.06        3.9
         pr_aeon |        123    3.109675    .0842512       2.89       3.33
    -------------+---------------------------------------------------------
      pr_carlsbg |        123    12.71772    .8871993      11.44      14.48
          pr_cck |        123         .21    .0174149        .18        .25
           pr_fn |        123    18.71203     .667615      17.96      19.98
       pr_fiamma |        123    .6940653    .0324375     .62333     .77333
       pr_beshom |        123    1.503236    .0624581    1.33332    1.59998
    -------------+---------------------------------------------------------
      pr_jaycorp |        123    1.023821    .1539175       .815       1.39
          pr_rki |        123    3.579959    .1825081       3.15      4.025
           pr_ql |        123    2.064039    .0486699    1.94872    2.17949
      pr_dpharma |        123    1.034657    .1642756     .80357    1.27607
       pr_kossan |        123    1.489329    .1328506     1.2875     1.7675
    -------------+---------------------------------------------------------
      pr_topglov |        123    .8455015    .1777488     .62083       1.16
          pr_apm |        123    4.765691    .2877871        4.1        5.3
        pr_favco |        123    2.802683    .1291084       2.44        3.2
        pr_hevea |        123    .8282317    .1176341        .63       1.14
        pr_hexza |        123    .8769106    .0548415        .75       .985
    -------------+---------------------------------------------------------
      pr_jcbnext |        123     2.03065     .238072       1.49      2.375
       pr_skpres |        123     1.06452    .0927184       .832       1.24
      pr_tongher |        123    2.073984    .0778264        1.9       2.28
         pr_ibhd |        123    .5598374    .0422082       .495        .67
          pr_lbs |        123    .7164446    .0238655     .68182     .76364
    -------------+---------------------------------------------------------
       pr_tambun |        123     1.62626    .1922404       1.18       1.88
       pr_vstecs |        123    .7047561    .0858966        .52       .845
          pr_pos |        123     4.07187    .3528673        3.5       4.99
        pr_suria |        123    1.943225    .0805429       1.75       2.15
    Code:
    . describe $portfolio1
    
    Variable      Storage   Display    Value
        name         type    format    label      Variable label
    --------------------------------------------------------------------------------------------
    pr_gadang       float   %8.0g                 
    pr_kimlun       float   %8.0g                 
    pr_mitra        float   %8.0g                 
    pr_ptaras       float   %8.0g                 
    pr_aeon         float   %8.0g                 
    pr_carlsbg      float   %8.0g                 
    pr_cck          float   %8.0g                 
    pr_fn           float   %8.0g                 
    pr_fiamma       float   %8.0g                 
    pr_beshom       float   %8.0g                 
    pr_jaycorp      float   %8.0g                 
    pr_rki          float   %8.0g                 
    pr_ql           float   %8.0g                 
    pr_dpharma      float   %8.0g                 
    pr_kossan       float   %8.0g                 
    pr_topglov      float   %8.0g                 
    pr_apm          float   %8.0g                 
    pr_favco        float   %8.0g                 
    pr_hevea        float   %8.0g                 
    pr_hexza        float   %8.0g                 
    pr_jcbnext      float   %8.0g                 
    pr_skpres       float   %8.0g                 
    pr_tongher      float   %8.0g                 
    pr_ibhd         float   %8.0g                 
    pr_lbs          float   %8.0g                 
    pr_tambun       float   %8.0g                 
    pr_vstecs       float   %8.0g                 
    pr_pos          float   %8.0g                 
    pr_suria        float   %8.0g     
    Last edited by Kathy Kim; 03 Dec 2022, 09:34.

    Comment


    • #3
      I would

      Code:
      set trace on 
      set traced 1
      and then run the command. I suspect something more subtle such as there being no observations that satisfy the necessary constraints of the command.

      Comment


      • #4
        Still appears as no observation:

        Code:
        . set trace on
        
        . set traced 1
        
        . do "C:\Users\khadi\AppData\Local\Temp\STD569c_000000.tmp"
        
        . global portfolio1 pr_gadang pr_kimlun pr_mitra pr_ptaras pr_aeon pr_carlsbg pr_cck pr_fn p
        > r_fiamma pr_beshom pr_jaycorp pr_rki pr_ql pr_dpharma pr_kossan pr_topglov pr_apm pr_favco
        >  pr_hevea pr_hexza pr_jcbnext pr_skpres pr_tongher pr_ibhd pr_lbs pr_tambun pr_vstecs pr_p
        > os pr_suria
        
        . 
        end of do-file
        
        . do "C:\Users\khadi\AppData\Local\Temp\STD569c_000000.tmp"
        
        . estudy $portfolio1, ///
        > datevar(date2) evdate(varnames ann_date2) dateformat(MDY) ///
        > modt(SIM) indexlist(mkt) diagn(BMP) price ///
        > eswlbound(-60) eswubound(-11) ///
        > lb1(-10) ub1(60) lb2(-10) ub2(0) lb3(0) ub3(60) dec(4)
        
        Event study with multiple event dates
        no observations
        r(2000);
        
        end of do-file
        
        r(2000);

        Comment


        • #5
          Indeed. It will be the same error. You didn't say you were running a do file so my guess at the needed depth was wrong. You need to bump up the depth. Try

          Code:
          set traced 2 
          and if necessary 3. Also, it's possible that you need to put the trace commands inside the do file.

          The odds are that many lines of code will get printed, but what we are looking for is how far along the command is when it fails.

          Comment


          • #6
            Code:
            . set traced 3
            
            . 
            end of do-file
            
            . do "C:\Users\khadi\AppData\Local\Temp\STD320c_000000.tmp"
            
            . global portfolio1 pr_gadang pr_kimlun pr_mitra pr_ptaras pr_aeon pr_carlsbg pr_cck pr_fn p
            > r_fiamma pr_beshom pr_jaycorp pr_rki pr_ql pr_dpharma pr_kossan pr_topglov pr_apm pr_favco
            >  pr_hevea pr_hexza pr_jcbnext pr_skpres pr_tongher pr_ibhd pr_lbs pr_tambun pr_vstecs pr_p
            > os pr_suria
            
            . 
            end of do-file
            
            . do "C:\Users\khadi\AppData\Local\Temp\STD320c_000000.tmp"
            
            . estudy $portfolio1, ///
            > datevar(date2) evdate(varnames ann_date2) dateformat(MDY) ///
            > modt(SIM) indexlist(mkt) diagn(BMP) price ///
            > eswlbound(-60) eswubound(-11) ///
            > lb1(-10) ub1(60) lb2(-10) ub2(0) lb3(0) ub3(60) dec(4)
            
            Event study with multiple event dates
            no observations
            r(2000);
            
            end of do-file
            
            r(2000);
            Still no observations,,

            Comment


            • #7
              It works well with my other data (different years) but it doesn't with this particular year.

              Comment


              • #8
                Again, if you run the same command on the same data, you should expect the same error. My code is not a fix. It is intended to help identification of the problem. The point is to get Stata to show what it is doing.

                Here is a silly example you can run yourself.

                Code:
                . sysuse auto, clear
                (1978 automobile data)
                
                . set trace on
                
                . set traced 1
                
                . tabstat mpg weight if make == 42
                ----------------------------------------------------------------------- begin tabstat ---
                - version 8, missing
                - syntax varlist(numeric) [if] [in] [aw fw] [ , BY(varname) CASEwise Columns(str) Format 
                > Format2(str) LAbelwidth(int -1) VArwidth(int -1) LOngstub Missing SAME SAVE noSEParator
                >  Statistics(str) STATS(str) noTotal ]
                type mismatch
                ------------------------------------------------------------------------- end tabstat ---
                r(109);
                Here tabstat failed and I see that I didn't get past the syntax command called inside tabstat.

                The essentials are that you


                Code:
                set trace on
                and

                Code:
                set tracedepth 2 
                high enough to see a command-by-command trace of estudy. 2 is just my guess.

                Also, I haven't checked but it's possible that those must be in the do-file before it calls estudy.




                Comment


                • #9
                  It works well with my other data (different years) but it doesn't with this particular year.
                  How does your data for this particular year differ from other years?

                  Is it perhaps earlier or later than the other years? Does it have fewer observations?

                  Do your variables varnames ann_date2 or mkt differ in some way from those in the other years?

                  Comment


                  • #10
                    It does not have any difference from the other years.

                    It's earlier than the other years and has the same observations.

                    Variable names are the same for all years.

                    Comment


                    • #11
                      But the data must be different for the command to fail, and you haven't shown us where the code fails. Perhaps someone else who has used estudy can help.

                      Comment


                      • #12
                        Not sure where the code fails but when I did sktest, one of the variables has this result (refer pr_dpharma). Does this mean something?

                        Code:
                        Skewness and kurtosis tests for normality
                                                                                 ----- Joint test -----
                            Variable |       Obs   Pr(skewness)   Pr(kurtosis)   Adj chi2(2)  Prob>chi2
                        -------------+-----------------------------------------------------------------
                           pr_gadang |       123         0.0355         0.0000         23.70     0.0000
                           pr_kimlun |       123         0.0000         0.0000         36.81     0.0000
                            pr_mitra |       123         0.0001         0.8257         12.41     0.0020
                           pr_ptaras |       123         0.5258         0.0003         11.42     0.0033
                             pr_aeon |       123         0.2603         0.9648          1.29     0.5241
                          pr_carlsbg |       123         0.1707         0.0000         24.80     0.0000
                              pr_cck |       123         0.0266         0.0006         13.80     0.0010
                               pr_fn |       123         0.0002         0.0011         19.28     0.0001
                           pr_fiamma |       123         0.1096         0.5806          2.93     0.2315
                           pr_beshom |       123         0.0013         0.3760          9.64     0.0081
                          pr_jaycorp |       123         0.0216         0.0047         11.26     0.0036
                              pr_rki |       123         0.6835         0.4532          0.74     0.6907
                               pr_ql |       123         0.3332         0.6463          1.17     0.5579
                          pr_dpharma |       123         0.2524         0.0000             .          .
                           pr_kossan |       123         0.2107         0.0000         47.65     0.0000
                          pr_topglov |       123         0.0137         0.0000         21.58     0.0000
                              pr_apm |       123         0.0653         0.0014         11.54     0.0031
                            pr_favco |       123         0.0785         0.0007         12.21     0.0022
                            pr_hevea |       123         0.0010         0.7605          9.54     0.0085
                            pr_hexza |       123         0.0036         0.4044          8.24     0.0162
                          pr_jcbnext |       123         0.0060         0.1266          8.76     0.0125
                           pr_skpres |       123         0.0029         0.7823          8.06     0.0178
                          pr_tongher |       123         0.8514         0.0740          3.30     0.1925
                             pr_ibhd |       123         0.0021         0.9199          8.42     0.0149
                              pr_lbs |       123         0.4133         0.0000         84.10     0.0000
                           pr_tambun |       123         0.0000         0.8700         13.93     0.0009
                           pr_vstecs |       123         0.7512         0.0000         16.69     0.0002
                              pr_pos |       123         0.1216         0.0047          9.13     0.0104
                            pr_suria |       123         0.4300         0.1297          2.98     0.2253

                        Comment


                        • #13
                          I doubt that it has any relevance.

                          Let's try again.

                          You should put

                          Code:
                          set trace on 
                          set tracedepth 2
                          in the do-file which includes the estudy command and just before the estudy call.

                          You should then see a detailed run through the commands and we need to see a chunk of the code just before estudy kicks you out.

                          Comment


                          • #14
                            To the advice in post #13 let me add that you need to run the three commands
                            Code:
                            set trace on 
                            set tracedepth 2
                            estudy ...
                            together.

                            In posts #5 and #6 you show us that you have been selecting individual commands and running them a single command at a time. That is why you have not been getting the helpful output from the trace command.

                            Comment


                            • #15
                              Aaah I see. Ok here are the results, really not sure how is this interpreted as I'm new to Stata.

                              The results are too long,

                              Code:
                              >  pr_apm pr_favco pr_hevea pr_hexza pr_jcbnext pr_skpres pr_tongher pr_ibhd pr_lbs pr_tambun pr_vstecs pr_pos pr_suria"
                                - forvalues i = 1/`nvars' {
                                = forvalues i = 1/29 {
                                - qui regress `dv_`i'' `aux_index_list_`i'' if `event'<=`upp_bound' & `event'>=`low_bound'
                                = qui regress __000007  __000006 if __000044<=-11 & __000044>=-60
                                  ------------------------------------------------------------------------------------------------------------------------------------------ begin regress ---
                                  - version 9, missing
                                  - local version : di "version " string(_caller()) ", missing :"
                                  - if replay() {
                                    if _by() {
                                    error 190
                                    }
                                    `version' Display `0'
                                    exit
                                    }
                                  - syntax [anything] [if] [in] [aw fw iw pw] [, VCE(passthru) Robust CLuster(passthru) HC2 HC3 beta EForm(passthru) noHEader noTABle plus * ]
                                  - local diopts0 `beta' `eform' `header' `table' `plus'
                                  = local diopts0     
                                  - if _by() {
                                    local BY `"by `_byvars'`_byrc0':"'
                                    }
                                  - if `:length local vce' {
                                  = if 0 {
                                    `version' `BY' _vce_parserun regress, mark(CLuster) eq(NOConstant) : `0'
                                    if "`s(exit)'" != "" {
                                    ereturn local cmdline `"regress `0'"'
                                    exit
                                    }
                                    _vce_parse, argopt(CLuster) opt(OLS Robust HC2 HC3) old : [`weight'`exp'], `vce' `robust' `cluster'
                                    if "`r(cluster)'" != "" {
                                    local cluster cluster(`r(cluster)')
                                    }
                                    else if "`r(vce)'" != "ols" {
                                    local robust = "`r(vce)'"
                                    }
                                    local vce = cond("`r(vce)'" != "", "`r(vce)'", "ols")
                                    if "`hc2'`hc3'" != "" {
                                    if !inlist("`vce'", "ols", "`robust'", "`hc2'`hc3'") {
                                    opts_exclusive "vce(`vce') `hc2' `hc3'"
                                    }
                                    local vce `hc2' `hc3'
                                    local options `options' `vce'
                                    }
                                    }
                                  - else if "`cluster'" != "" {
                                  = else if "" != "" {
                                    local vce cluster
                                    }
                                  - else if "`weight'" == "pweight" | "`robust'" != "" {
                                  = else if "" == "pweight" | "" != "" {
                                    local vce robust
                                    }
                                  - else if "`hc2'`hc3'" != "" {
                                  = else if "" != "" {
                                    local vce `hc2' `hc3'
                                    local options `options' `vce'
                                    }
                                  - else local vce ols
                                  - _get_diopts diopts options, `options'
                                  = _get_diopts diopts options, 
                                  - if _by() {
                                    `version' `BY' BYREG `anything' `if' `in' [`weight'`exp'], `options' `diopts0' `diopts' `robust' `cluster'
                                    }
                                  - else {
                                  - `version' _regress `anything' `if' `in' [`weight'`exp'], `diopts0' `diopts' `options' `robust' `cluster'
                                  = version 13, missing : _regress __000007  __000006 if __000044<=-11 & __000044>=-60  [],     
                                  - }
                                  - ereturn local vce `vce'
                                  = ereturn local vce ols
                                  - ereturn local marginsok "XB default"
                                  - ereturn hidden local marginsprop minus
                                  - ereturn local title "Linear regression"
                                  - ereturn local cmdline `"regress `0'"'
                                  = ereturn local cmdline `"regress __000007  __000006 if __000044<=-11 & __000044>=-60"'
                                  - _post_vce_rank, checksize
                                  -------------------------------------------------------------------------------------------------------------------------------------------- end regress ---
                                - tempvar ar_`z'_`i'
                                = tempvar ar_1_1
                                - qui predict `ar_`z'_`i'' , resid
                                = qui predict __000047 , resid
                                  ------------------------------------------------------------------------------------------------------------------------------------------ begin predict ---
                                  - version 8.2, missing
                                  - if "`e(cmd)'" == "rocreg" & "`e(predict)'" == "" {
                                  = if "regress" == "rocreg" & "regres_p" == "" {
                                    di as err "predict not allowed after nonparametric ROC"
                                    exit 198
                                    }
                                  - if "`e(mi)'"!="" & "`e(b)'"!="matrix" {
                                  = if ""!="" & "matrix"!="matrix" {
                                    error 321
                                    }
                                  - if _caller()<=5 | "`e(predict)'"=="" {
                                  = if _caller()<=5 | "regres_p"=="" {
                                    _predict `0'
                                    }
                                  - else {
                                  - local v : display string(_caller())
                                  - version `v', missing
                                  = version 13, missing
                                  - `e(predict)' `0'
                                  = regres_p __000047 , resid
                                  - }
                                  -------------------------------------------------------------------------------------------------------------------------------------------- end predict ---
                                - _crcslbl `ar_`z'_`i'' ``i''
                                = _crcslbl __000047 pr_gadang
                                  ----------------------------------------------------------------------------------------------------------------------------------------- begin _crcslbl ---
                                  - version 6
                                  - args dst src
                                  - local w : variable label `src'
                                  = local w : variable label pr_gadang
                                  - if `"`w'"' == "" {
                                  = if `""' == "" {
                                  - local w "`src'"
                                  = local w "pr_gadang"
                                  - }
                                  - label variable `dst' `"`w'"'
                                  = label variable __000047 `"pr_gadang"'
                                  ------------------------------------------------------------------------------------------------------------------------------------------- end _crcslbl ---
                                - }
                                - qui regress `dv_`i'' `aux_index_list_`i'' if `event'<=`upp_bound' & `event'>=`low_bound'
                                = qui regress __00000C  __00000B if __000044<=-11 & __000044>=-60
                                  ------------------------------------------------------------------------------------------------------------------------------------------ begin regress ---
                                  - version 9, missing
                                  - local version : di "version " string(_caller()) ", missing :"
                                  - if replay() {
                                    if _by() {
                                    error 190
                                    }
                                    `version' Display `0'
                                    exit
                                    }
                                  - syntax [anything] [if] [in] [aw fw iw pw] [, VCE(passthru) Robust CLuster(passthru) HC2 HC3 beta EForm(passthru) noHEader noTABle plus * ]
                                  - local diopts0 `beta' `eform' `header' `table' `plus'
                                  = local diopts0     
                                  - if _by() {
                                    local BY `"by `_byvars'`_byrc0':"'
                                    }
                                  - if `:length local vce' {
                                  = if 0 {
                                    `version' `BY' _vce_parserun regress, mark(CLuster) eq(NOConstant) : `0'
                                    if "`s(exit)'" != "" {
                                    ereturn local cmdline `"regress `0'"'
                                    exit
                                    }
                                    _vce_parse, argopt(CLuster) opt(OLS Robust HC2 HC3) old : [`weight'`exp'], `vce' `robust' `cluster'
                                    if "`r(cluster)'" != "" {
                                    local cluster cluster(`r(cluster)')
                                    }
                                    else if "`r(vce)'" != "ols" {
                                    local robust = "`r(vce)'"
                                    }
                                    local vce = cond("`r(vce)'" != "", "`r(vce)'", "ols")
                                    if "`hc2'`hc3'" != "" {
                                    if !inlist("`vce'", "ols", "`robust'", "`hc2'`hc3'") {
                                    opts_exclusive "vce(`vce') `hc2' `hc3'"
                                    }
                                    local vce `hc2' `hc3'
                                    local options `options' `vce'
                                    }
                                    }
                                  - else if "`cluster'" != "" {
                                  = else if "" != "" {
                                    local vce cluster
                                    }
                                  - else if "`weight'" == "pweight" | "`robust'" != "" {
                                  = else if "" == "pweight" | "" != "" {
                                    local vce robust
                                    }
                                  - else if "`hc2'`hc3'" != "" {
                                  = else if "" != "" {
                                    local vce `hc2' `hc3'
                                    local options `options' `vce'
                                    }
                                  - else local vce ols
                                  - _get_diopts diopts options, `options'
                                  = _get_diopts diopts options, 
                                  - if _by() {
                                    `version' `BY' BYREG `anything' `if' `in' [`weight'`exp'], `options' `diopts0' `diopts' `robust' `cluster'
                                    }
                                  - else {
                                  - `version' _regress `anything' `if' `in' [`weight'`exp'], `diopts0' `diopts' `options' `robust' `cluster'
                                  = version 13, missing : _regress __00000C  __00000B if __000044<=-11 & __000044>=-60  [],     
                                  - }
                                  - ereturn local vce `vce'
                                  = ereturn local vce ols
                                  - ereturn local marginsok "XB default"
                                  - ereturn hidden local marginsprop minus
                                  - ereturn local title "Linear regression"
                                  - ereturn local cmdline `"regress `0'"'
                                  = ereturn local cmdline `"regress __00000C  __00000B if __000044<=-11 & __000044>=-60"'
                                  - _post_vce_rank, checksize
                                  -------------------------------------------------------------------------------------------------------------------------------------------- end regress ---
                                - tempvar ar_`z'_`i'
                                = tempvar ar_1_2
                                - qui predict `ar_`z'_`i'' , resid
                                = qui predict __000048 , resid
                                  ------------------------------------------------------------------------------------------------------------------------------------------ begin predict ---
                                  - version 8.2, missing
                                  - if "`e(cmd)'" == "rocreg" & "`e(predict)'" == "" {
                                  = if "regress" == "rocreg" & "regres_p" == "" {
                                    di as err "predict not allowed after nonparametric ROC"
                                    exit 198
                                    }
                                  - if "`e(mi)'"!="" & "`e(b)'"!="matrix" {
                                  = if ""!="" & "matrix"!="matrix" {
                                    error 321
                                    }
                                  - if _caller()<=5 | "`e(predict)'"=="" {
                                  = if _caller()<=5 | "regres_p"=="" {
                                    _predict `0'
                                    }
                                  - else {
                                  - local v : display string(_caller())
                                  - version `v', missing
                                  = version 13, missing
                                  - `e(predict)' `0'
                                  = regres_p __000048 , resid
                                  - }
                                  -------------------------------------------------------------------------------------------------------------------------------------------- end predict ---
                                - _crcslbl `ar_`z'_`i'' ``i''
                                = _crcslbl __000048 pr_kimlun
                                  ----------------------------------------------------------------------------------------------------------------------------------------- begin _crcslbl ---
                                  - version 6
                                  - args dst src
                                  - local w : variable label `src'
                                  = local w : variable label pr_kimlun
                                  - if `"`w'"' == "" {
                                  = if `""' == "" {
                                  - local w "`src'"
                                  = local w "pr_kimlun"
                                  - }
                                  - label variable `dst' `"`w'"'
                                  = label variable __000048 `"pr_kimlun"'
                                  ------------------------------------------------------------------------------------------------------------------------------------------- end _crcslbl ---
                                - }
                                - qui regress `dv_`i'' `aux_index_list_`i'' if `event'<=`upp_bound' & `event'>=`low_bound'
                                = qui regress __00000H  __00000G if __000044<=-11 & __000044>=-60

                              Comment

                              Working...
                              X