Announcement

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

  • Twoway graph from Table Command

    Hello,

    is there a way to graph your results from the table command. I use the table command to create a table that I want but would like to create a line graph based on the data.

    Here is the code I use.

    Code:
    table self_employ [pweight=perwt], by(race_ethn year)
    Thank you

  • #2
    I know of one method: you can add a -replace- after the by option and the results will take place of the current data, then you can graph them. If you want to come back to the original data, use -preserve- and -restore- to wrap this procedure up. Kind of like this example:

    Code:
    preserve
    table self_employ [pweight=perwt], by(race_ethn year) replace
    *Whatever graphs to produce
    restore

    Comment


    • #3
      thank you this is great information!

      Comment

      Working...
      X