---------------------------------------------------------------------------------------------------------- name: log: C:\Users\Aki\Documents\stata\feb21.log log type: text opened on: 21 Feb 2022, 18:44:07 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . sysuse auto, clear (1978 Automobile Data) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . su Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- make | 0 price | 74 6165.257 2949.496 3291 15906 mpg | 74 21.2973 5.785503 12 41 rep78 | 69 3.405797 .9899323 1 5 headroom | 74 2.993243 .8459948 1.5 5 -------------+--------------------------------------------------------- trunk | 74 13.75676 4.277404 5 23 weight | 74 3019.459 777.1936 1760 4840 length | 74 187.9324 22.26634 142 233 turn | 74 39.64865 4.399354 31 51 displacement | 74 197.2973 91.83722 79 425 -------------+--------------------------------------------------------- gear_ratio | 74 3.014865 .4562871 2.19 3.89 foreign | 74 .2972973 .4601885 0 1 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . preserve . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . drop if weight<3000 (35 observations deleted) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . su Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- make | 0 price | 39 7128.051 3507.253 3955 15906 mpg | 39 17.5641 3.093243 12 28 rep78 | 37 3.027027 .763271 1 5 headroom | 39 3.410256 .8340752 1.5 5 -------------+--------------------------------------------------------- trunk | 39 16.41026 3.306437 7 23 weight | 39 3653.846 423.5788 3170 4840 length | 39 205.1795 13.14268 170 233 turn | 39 42.61538 3.39206 31 51 displacement | 39 264.6923 68.38789 156 425 -------------+--------------------------------------------------------- gear_ratio | 39 2.727949 .3137312 2.19 3.58 foreign | 39 .0512821 .2234559 0 1 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . restore nothing to restore r(622); end of do-file r(622); . restore nothing to restore r(622); . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . sysuse auto, clear (1978 Automobile Data) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . preserve . drop if weight<3000 (35 observations deleted) . su Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- make | 0 price | 39 7128.051 3507.253 3955 15906 mpg | 39 17.5641 3.093243 12 28 rep78 | 37 3.027027 .763271 1 5 headroom | 39 3.410256 .8340752 1.5 5 -------------+--------------------------------------------------------- trunk | 39 16.41026 3.306437 7 23 weight | 39 3653.846 423.5788 3170 4840 length | 39 205.1795 13.14268 170 233 turn | 39 42.61538 3.39206 31 51 displacement | 39 264.6923 68.38789 156 425 -------------+--------------------------------------------------------- gear_ratio | 39 2.727949 .3137312 2.19 3.58 foreign | 39 .0512821 .2234559 0 1 . restore . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . su Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- make | 0 price | 74 6165.257 2949.496 3291 15906 mpg | 74 21.2973 5.785503 12 41 rep78 | 69 3.405797 .9899323 1 5 headroom | 74 2.993243 .8459948 1.5 5 -------------+--------------------------------------------------------- trunk | 74 13.75676 4.277404 5 23 weight | 74 3019.459 777.1936 1760 4840 length | 74 187.9324 22.26634 142 233 turn | 74 39.64865 4.399354 31 51 displacement | 74 197.2973 91.83722 79 425 -------------+--------------------------------------------------------- gear_ratio | 74 3.014865 .4562871 2.19 3.89 foreign | 74 .2972973 .4601885 0 1 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . drop t* . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . save auto2.dta, replace (note: file auto2.dta not found) file auto2.dta saved . end of do-file . clear . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . use append1 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . use append2 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . browse . end of do-file . append using "C:\Users\Aki\Documents\stata\append1.dta" . clear . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . use autosize (1978 Automobile Data) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . use autoexpense, clear (1978 Automobile Data) . end of do-file . merge 1:1 make using "C:\Users\Aki\Documents\stata\autosize.dta" Result # of obs. ----------------------------------------- not matched 1 from master 0 (_merge==1) from using 1 (_merge==2) matched 5 (_merge==3) ----------------------------------------- . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . help graph . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . sysuse auto, clear (1978 Automobile Data) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . graph twoway scatter price mpg . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . graph twoway scatter weight mpg . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . graph twoway (scatter price mpg) (scatter weight mpg) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . graph twoway scatter price mpg . end of do-file . note: nothing to undo note: nothing to undo do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . graph twoway (scatter price mpg) (scatter weight mpg) . **graphs can be combined this way into one only if one axis is the same . . graph save test (file test.gph saved) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . graph use test . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . graph use test . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . graph twoway (scatter price mpg if foreign==1) (scatter price mpg if foreign==0) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD4224_000000.tmp" . graph bar (count), over (rep78) . end of do-file . graph bar (count), over(rep78) . graph bar (count), over(rep78) over(foreign) . graph bar (count) if price > 5000, over(rep78) over(foreign) . graph hbar (count) if price > 5000, over(rep78) over(foreign) . exit, clear