Announcement

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

  • test2

    write something

    try to insert code

    Code:
    sysuse auto, clear
    gen temp=substr(make,1,2)
    * just to simplify things
    keep if temp<"D"
    
    * this works fine
    gr hbar (count), over(temp)
    
    * this is what the helpfile says to do if you want them in a different order
    gen order=1 if temp=="BM"
    replace order=2 if temp=="Bu"
    replace order=3 if temp=="AM"
    replace order=4 if temp=="Au"
    replace order=5 if temp=="Ca"
    replace order=6 if temp=="Ch"
    
    gr hbar (count), over(temp, sort(order))
    /*
    "variable mean not found"
Working...
X