Announcement

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

  • Onewplot_option mlabel() not allowed

    Hi there,

    Nice to meet you, it is my first time here as I am getting more acquainted with STATA.

    I am experiencing an issue with the mlabel() command as I receive back the error r(198).

    I am trying to use onewplot to generate a graph with party positions on a continuum (single dimension):

    Code:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input double redistribution str20 party
     2.859999895095825 "SPD"            
    .28999999165534973 "Linkspartei/PDS"
     5.139999866485596 "CDU"            
    3.2899999618530273 "Grunen"        
     7.139999866485596 "FDP"            
     4.860000133514404 "CSU"            
    end
    This is the code I used:

    Code:
    onewplot redistribution if year==2006, mlabel(party) mlabposition(3)
    Do you have any suggestions? I read the syntax and I cannot see any mistyping (I may be wrong).

    Sincerely
    Mattia

    ​​​​​​​

  • #2
    onewplot is a 1999 program from SSC written for Stata 6 (or 7). You're using some options available only from Stata 8 onwards and that won't work.

    The metadata at SSC advise users of Stata 8 up to use stripplot (SSC) instead, but I can't see that as being especially helpful with your data example.


    Code:
    graph dot (asis) redistribution, over(party, sort(1))
    is where I would start -- presumably if year == 2006 remains pertinent.

    Comment


    • #3
      That worked perfectly! Thanks

      Also, thanks a lot for your speedy reply.

      Sincerely
      Mattia

      Comment

      Working...
      X