stata - Graphing two observations, not variables -


the data looks like

year 1970 1971 1972  num    3   1     4 

but "graph twoway line year num" not work here because not variable names.

what should do?

you need transpose data interesting or useful. don't variable names are, here technique.

clear  input str4 whatever x y z  year 1970 1971 1972  num    3   1     4 end   xpose, clear  drop in 1  rename (v?) (year num)  

the names in string variable won't past xpose example trivial rename get.


Comments

Popular posts from this blog

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -

angular - DownloadURL return null in below code -