Announcement

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

  • Bug in lowess

    I'm preparing some teaching, so I've switched to Stata. I believe I have found a strange bug.

    Code:
    ds
    gives:

    Code:
    pack          swan          diff_pack     diff_swan     limit         balance
    eco           bulb          diff_eco      diff_bulb     interference  abusing
    But lowess doesn't like the use of "swan" as a variable.

    Code:
    lowess eco diff_eco    // works
    lowess swan diff_swan  // invalid syntax r(198);
    reg swan diff_swan     // works
    I don't have time to engage in discussions, but maybe someone spots the problem. If not, StataCorp may PM me if they want the data to do some testing.

    Best,
    Christopher
    πŸ‡ΊπŸ‡¦

  • #2
    I cannot reproduce the problem you mention, so I think the problem lies on your end somehow.

    Code:
    webuse lowess1, clear
    lowess h1 depth
    
    rename h1 swan
    lowess swan depth
    
    rename depth diff_swan
    lowess swan diff_swan
    Using Stata 17 15 Feb 2022.

    Comment


    • #3
      Thanks for trying.
      I repeatedly made attempts (e.g. simply switching "eco" with "swan"), but with no success.

      I will leave it at that. But thanks a lot for checking!

      Comment


      • #4
        Could you post your example data? And rerun the same command...

        Comment

        Working...
        X