---------------------------------------------------------------------------------------------------------- name: log: C:\Users\Aki\Documents\stata\feb28.log log type: text opened on: 28 Feb 2022, 18:40:15 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . sysuse auto, clear (1978 Automobile Data) . end of do-file . graph dot (mean) price, over(rep78) . graph dot (mean) price if foreign==1, over(rep78) . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . histogram price (bin=8, start=3291, width=1576.875) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . histogram price (bin=8, start=3291, width=1576.875) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . histogram price, bin(20) (bin=20, start=3291, width=630.75) . end of do-file . histogram price, frequency (bin=8, start=3291, width=1576.875) . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . kdensity price . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . kdensity price if foreign==0 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . kdensity price if foreign ==1 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . graph twoway (kdensity price if foreign==0) (kdensity price if foreign==1) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . quantile price . end of do-file . graph box price, over(foreign) . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . graph box price weight, over(foreign) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . graph pie, over(rep78) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . scatter price mpg . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . twoway (scatter price mpg) (lfit price mpg) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . twoway (scatter price mpg) (qfit price mpg) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . twoway (scatter price mpg) (lpoly price mpg) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . sysuse sandstone, clear (Subsea elevation of Lamont sandstone in an area of Ohio) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . twoway contour depth northing easting . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . twoway (scatter price mpg if foreign==1, title(Foreign)) (lfit price mpg if foreign==1, name(graph1)) foreign not found r(111); end of do-file r(111); . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . sysuse auto, clear (1978 Automobile Data) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . twoway (scatter price mpg if foreign==1, title(Foreign)) (lfit price mpg if foreign==1, name(graph1)) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . twoway (scatter price mpg if foreign==0, title(Domestic)) (lfit price mpg if foreign==0, name(graph2)) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . graph combine graph1 graph2 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . local varlist "price mpg rep78" . sum `varlist' Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 74 6165.257 2949.496 3291 15906 mpg | 74 21.2973 5.785503 12 41 rep78 | 69 3.405797 .9899323 1 5 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . tab rep78 Repair | Record 1978 | Freq. Percent Cum. ------------+----------------------------------- 1 | 2 2.90 2.90 2 | 8 11.59 14.49 3 | 30 43.48 57.97 4 | 18 26.09 84.06 5 | 11 15.94 100.00 ------------+----------------------------------- Total | 69 100.00 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . sum `varlist' 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\STD28b4_000000.tmp" . global varlist "price mpg rep78" . sum $varlist Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 74 6165.257 2949.496 3291 15906 mpg | 74 21.2973 5.785503 12 41 rep78 | 69 3.405797 .9899323 1 5 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . tab rep78 Repair | Record 1978 | Freq. Percent Cum. ------------+----------------------------------- 1 | 2 2.90 2.90 2 | 8 11.59 14.49 3 | 30 43.48 57.97 4 | 18 26.09 84.06 5 | 11 15.94 100.00 ------------+----------------------------------- Total | 69 100.00 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . sum $varlist Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 74 6165.257 2949.496 3291 15906 mpg | 74 21.2973 5.785503 12 41 rep78 | 69 3.405797 .9899323 1 5 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . reg trunk $varlist Source | SS df MS Number of obs = 69 -------------+---------------------------------- F(3, 65) = 11.43 Model | 443.023858 3 147.674619 Prob > F = 0.0000 Residual | 839.613823 65 12.9171357 R-squared = 0.3454 -------------+---------------------------------- Adj R-squared = 0.3152 Total | 1282.63768 68 18.8623188 Root MSE = 3.594 ------------------------------------------------------------------------------ trunk | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- price | .0000828 .0001729 0.48 0.634 -.0002625 .0004281 mpg | -.4337857 .0937651 -4.63 0.000 -.6210477 -.2465238 rep78 | .3428124 .4945503 0.69 0.491 -.6448727 1.330497 _cons | 21.48622 2.523189 8.52 0.000 16.44706 26.52537 ------------------------------------------------------------------------------ . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . foreach i in price mpg length { 2. gen log`i' = log(`i') 3. su log`i' 4. } Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- logprice | 74 8.640633 .3921059 8.098947 9.674452 Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- logmpg | 74 3.024536 .2601692 2.484907 3.713572 Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- loglength | 74 5.229035 .1201383 4.955827 5.451038 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . foreach var of varlist price - trunk { 2. gen `var'10 = `var'*10 3. } (5 missing values generated) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD28b4_000000.tmp" . foreach var of varlist * { 2. gen `var'100 = `var'*100 3. } (5 missing values generated) (5 missing values generated) . end of do-file . log close name: log: C:\Users\Aki\Documents\stata\feb28.log log type: text closed on: 28 Feb 2022, 19:41:44 ----------------------------------------------------------------------------------------------------------