STATA命令:codebook

list
//
//      +-------------------------------------------------------------------------------------------------------------------+
//      | make             price   mpg   rep78   headroom   trunk   weight   length   turn   displa~t   gear_r~o    foreign |
//      |-------------------------------------------------------------------------------------------------------------------|
//   1. | AMC Concord      4,099    22       3        2.5      11    2,930      186     40        121       3.58   Domestic |
//   2. | AMC Pacer        4,749    17       3        3.0      11    3,350      173     40        258       2.53   Domestic |
//   3. | AMC Spirit       3,799    22       .        3.0      12    2,640      168     35        121       3.08   Domestic |
//   4. | Buick Century    4,816    20       3        4.5      16    3,250      196     40        196       2.93   Domestic |
//   5. | Buick Electra    7,827    15       4        4.0      20    4,080      222     43        350       2.41   Domestic |
//      |-------------------------------------------------------------------------------------------------------------------|
//   6. | Buick LeSabre    5,788    18       3        4.0      21    3,670      218     43        231       2.73   Domestic |
//   7. | Buick Opel       4,453    26       .        3.0      10    2,230      170     34        304       2.87   Domestic |
//   8. | Buick Regal      5,189    20       3        2.0      16    3,280      200     42        196       2.93   Domestic |
//   9. | Buick Riviera   10,372    16       3        3.5      17    3,880      207     43        231       2.93   Domestic |
//      +-------------------------------------------------------------------------------------------------------------------+
//描述mpg,总结其类型  范围 值分为几类,每类出现的次数 有几个缺失值
codebook mpg
//
// ------------------------------------------------------------------------------------------------------------------
// mpg                                                                                                  Mileage (mpg)
// ------------------------------------------------------------------------------------------------------------------
//
//                   Type: Numeric (int)
//
//                  Range: [15,26]                       Units: 1
//          Unique values: 7                         Missing .: 0/9
//
//             Tabulation: Freq.  Value
//                             1  15
//                             1  16
//                             1  17
//                             1  18
//                             2  20
//                             2  22
//                             1  26

 

posted @ 2023-02-24 15:00  myrj  阅读(396)  评论(0编辑  收藏  举报