Announcement

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

  • bayes prefix + frame : possible bug

    Hi just want to confirm a weird behavior when using bayes prefix + frame.

    bayes command changes current frame to the default. Is that the expected behavior?

    Code:
    . clear all
    
    . frame create temp
    
    . cwf temp
    
    . webuse auto
    (1978 automobile data)
    
    . reg price mpg
    
          Source |       SS           df       MS      Number of obs   =        74
    -------------+----------------------------------   F(1, 72)        =     20.26
           Model |   139449474         1   139449474   Prob > F        =    0.0000
        Residual |   495615923        72  6883554.48   R-squared       =    0.2196
    -------------+----------------------------------   Adj R-squared   =    0.2087
           Total |   635065396        73  8699525.97   Root MSE        =    2623.7
    
    ------------------------------------------------------------------------------
           price | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
    -------------+----------------------------------------------------------------
             mpg |  -238.8943   53.07669    -4.50   0.000    -344.7008   -133.0879
           _cons |   11253.06   1170.813     9.61   0.000     8919.088    13587.03
    ------------------------------------------------------------------------------
    
    . bayes: reg price mpg
    no variables defined
    r(111);
    
    . pwf
      (current frame is default)
    stata 17.0

  • #2
    maybe caused by lines 133–137 in bayes.ado
    Code:
    tempname wrkframe
    //preserve
    frame copy default `wrkframe'
    frame change `wrkframe'

    Comment


    • #3
      I can replicate this problem on my setup. And if you take away the -bayes:- prefix, things work just fine. This definitely smells like a bug. I recommend you report it to Stata Tech Support.

      Comment


      • #4
        ok, just want to make sure it was not due to any specific to my setup.

        I will advice Stata Tech Support.

        Comment

        Working...
        X