Announcement

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

  • Graph combine

    Dear Statalisters,

    My data is a labor market panel for two years over a large number of individuals.
    I am trying to do a graph combine for a number of variables. So, I tried the below code but I got an error message saying: age is not a memory graph.
    I can not figure out what went wrong.

    Code:
    local continuous "age wealth yrschl hrwg crhrsday mnthwg hrwgAllJob mnthwgAllJob"
    des `continuous'
    foreach var in `continuous' {
    graph box `var', saving (`var',replace)
    }
    local continous "age.gph wealth.gph yrschl.gph crhrsday.gph hrwg.gph mnthwg.gph hrwgAllJob.gph mnthwgAllJob.gph"
    graph combine `continuous',rows(3) iscale(.5)
    Many thanks,
    Maye

  • #2
    Typo? You had
    Code:
     
     local continous
    not
    Code:
    local continuous

    Comment


    • #3
      Typo-2: You have

      Code:
       
       graph box `var', saving (`var',replace) }
      Remove the space after 'saving' option. Its not saving any graphs to combine.

      Code:
       
       graph box `var', saving(`var',replace) }
      Roman

      Comment


      • #4
        Many thanks. I corrected it and it worked perfectly.
        Yet, It worked fine without correcting for the second typo: the space between saving and the bracket.

        Comment

        Working...
        X