------------------------------------------------------------------------------- name: log: C:\Users\Aki\Documents\stata\jan31.smcl log type: smcl opened on: 31 Jan 2022, 18:39:52 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . sysuse auto, clear (1978 Automobile Data) . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . browse . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . browse make price . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . describe Contains data from C:\Program Files\Stata16\ado\base/a/auto.dta obs: 74 1978 Automobile Data vars: 12 13 Apr 2018 17:45 (_dta has notes) ------------------------------------------------------------------------------- storage display value variable name type format label variable label ------------------------------------------------------------------------------- make str18 %-18s Make and Model price int %8.0gc Price mpg int %8.0g Mileage (mpg) rep78 int %8.0g Repair Record 1978 headroom float %6.1f Headroom (in.) trunk int %8.0g Trunk space (cu. ft.) weight int %8.0gc Weight (lbs.) length int %8.0g Length (in.) turn int %8.0g Turn Circle (ft.) displacement int %8.0g Displacement (cu. in.) gear_ratio float %6.2f Gear Ratio foreign byte %8.0g origin Car type ------------------------------------------------------------------------------- Sorted by: foreign . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . summarize 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\STD2ec8_000000.tmp" . sum length trunk turn Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- length | 74 187.9324 22.26634 142 233 trunk | 74 13.75676 4.277404 5 23 turn | 74 39.64865 4.399354 31 51 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . browse . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . summarize price if foreign==1 Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 22 6384.682 2621.915 3748 12990 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . summarize price if foreign==0 Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 52 6072.423 3097.104 3291 15906 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . codebook foreign ------------------------------------------------------------------------------- foreign Car type ------------------------------------------------------------------------------- type: numeric (byte) label: origin range: [0,1] units: 1 unique values: 2 missing .: 0/74 tabulation: Freq. Numeric Label 52 0 Domestic 22 1 Foreign . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . codebook price ------------------------------------------------------------------------------- price Price ------------------------------------------------------------------------------- type: numeric (int) range: [3291,15906] units: 1 unique values: 74 missing .: 0/74 mean: 6165.26 std. dev: 2949.5 percentiles: 10% 25% 50% 75% 90% 3895 4195 5006.5 6342 11385 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . codebook rep78 ------------------------------------------------------------------------------- rep78 Repair Record 1978 ------------------------------------------------------------------------------- type: numeric (int) range: [1,5] units: 1 unique values: 5 missing .: 5/74 tabulation: Freq. Value 2 1 8 2 30 3 18 4 11 5 5 . . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . summarize price if rep78<3 Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 10 5687 3216.375 3667 14500 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . summarize price if rep78>=3 Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 64 6239.984 2925.843 3291 15906 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . summarize price if rep78!=3 Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 44 5985.273 2511.267 3667 14500 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . summarize price if foreign==1 & rep78>=3 Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 22 6384.682 2621.915 3748 12990 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . summarize price if foreign==1 | rep78>=3 Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 64 6239.984 2925.843 3291 15906 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . sum foreign Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- foreign | 74 .2972973 .4601885 0 1 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . tab foreign Car type | Freq. Percent Cum. ------------+----------------------------------- Domestic | 52 70.27 70.27 Foreign | 22 29.73 100.00 ------------+----------------------------------- Total | 74 100.00 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . tab foreign, nolabel Car type | Freq. Percent Cum. ------------+----------------------------------- 0 | 52 70.27 70.27 1 | 22 29.73 100.00 ------------+----------------------------------- Total | 74 100.00 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_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\STD2ec8_000000.tmp" . tab foreign rep78 | Repair Record 1978 Car type | 1 2 3 4 5 | Total -----------+-------------------------------------------------------+---------- Domestic | 2 8 27 9 2 | 48 Foreign | 0 0 3 9 9 | 21 -----------+-------------------------------------------------------+---------- Total | 2 8 30 18 11 | 69 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . tab foreign rep78, col row +-------------------+ | Key | |-------------------| | frequency | | row percentage | | column percentage | +-------------------+ | Repair Record 1978 Car type | 1 2 3 4 5 | Total -----------+-------------------------------------------------------+---------- Domestic | 2 8 27 9 2 | 48 | 4.17 16.67 56.25 18.75 4.17 | 100.00 | 100.00 100.00 90.00 50.00 18.18 | 69.57 -----------+-------------------------------------------------------+---------- Foreign | 0 0 3 9 9 | 21 | 0.00 0.00 14.29 42.86 42.86 | 100.00 | 0.00 0.00 10.00 50.00 81.82 | 30.43 -----------+-------------------------------------------------------+---------- Total | 2 8 30 18 11 | 69 | 2.90 11.59 43.48 26.09 15.94 | 100.00 | 100.00 100.00 100.00 100.00 100.00 | 100.00 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . misstable summarize Obs<. +------------------------------ | | Unique Variable | Obs=. Obs>. Obs<. | values Min Max -------------+--------------------------------+------------------------------ rep78 | 5 69 | 5 1 5 ----------------------------------------------------------------------------- . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_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\STD2ec8_000000.tmp" . tab rep78, miss Repair | Record 1978 | Freq. Percent Cum. ------------+----------------------------------- 1 | 2 2.70 2.70 2 | 8 10.81 13.51 3 | 30 40.54 54.05 4 | 18 24.32 78.38 5 | 11 14.86 93.24 . | 5 6.76 100.00 ------------+----------------------------------- Total | 74 100.00 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . sum price if rep78>=5 Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 16 6074.688 2912.431 3748 12990 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . sum price if rep78>=5 & rep78!=. Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 11 5913 2615.763 3748 11995 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . sum price if rep78!=. Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 69 6146.043 2912.44 3291 15906 . sum price if rep78==. Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 5 6430.4 3804.322 3799 12990 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . mvencode *, mv(-99) make: string variable ignored rep78: 5 missing values recoded . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . sum price if rep78>=5 Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 11 5913 2615.763 3748 11995 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . mvdecode *, mv(-99) make: string variable ignored rep78: 5 missing values generated . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp" . sum price if rep78>=5 Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------- price | 16 6074.688 2912.431 3748 12990 . end of do-file . do "C:\Users\Aki\AppData\Local\Temp\STD2ec8_000000.tmp"