楼主: 瘐徒
7834 29

[学习心得] dataex命令练习 [推广有奖]

21
ucb734279 发表于 2021-2-3 01:37:02


  1. * Example generated by -dataex-. To install: ssc install dataex
  2. clear
  3. input float id int(price mpg rep78) float headroom int trunk
  4. 9 10372 16 3 3.5 17
  5. 12 14500 14 2 3.5 16
  6. end
复制代码

22
K77 发表于 2021-5-19 12:28:02
----------------------- copy starting from the next line -----------------------
  1. * Example generated by -dataex-. To install: ssc install dataex
  2. clear
  3. input int(year period) str6 tradeflow int reportercode str10 reporter str18 partner double netweightkg
  4. 2019 2019 "Export"  76 "Brazil"     "Italy"               2725056115
  5. 2000 2000 "Export"  76 "Brazil"     "Italy"              10532028834
  6. 2019 2019 "Export" 398 "Kazakhstan" "Russian Federation"  8477781000
  7. 2019 2019 "Export" 604 "Peru"       "China"              15485909500
  8. 2000 2000 "Export" 604 "Peru"       "China"               1461954752
  9. 2019 2019 "Export"  76 "Brazil"     "Malaysia"           28521944000
  10. 2000 2000 "Export"  76 "Brazil"     "Malaysia"             893905167
  11. end
复制代码

------------------ copy up to and including the previous line ------------------

23
Ms.ws 学生认证  发表于 2021-6-4 13:27:53
  1. * Example generated by -dataex-. To install: ssc install dataex
  2. clear
  3. input float id int(price mpg rep78) float headroom int trunk
  4. 1  4099 22 3 2.5 11
  5. 2  4749 17 3   3 11
  6. 3  3799 22 .   3 12
  7. 4  4816 20 3 4.5 16
  8. 5  7827 15 4   4 20
  9. 6  5788 18 3   4 21
  10. 7  4453 26 .   3 10
  11. 8  5189 20 3   2 16
  12. 9 10372 16 3 3.5 17
  13. 10  4082 19 3 3.5 13
  14. end
复制代码

24
是周瑜 发表于 2021-6-22 13:41:32
  1. [CODE]
  2. * Example generated by -dataex-. To install: ssc install dataex
  3. clear
  4. input int(price weight length rep78)
  5. 4099 2930 186 3
  6. 4749 3350 173 3
  7. 3799 2640 168 .
  8. 4816 3250 196 3
  9. 7827 4080 222 4
  10. 5788 3670 218 3
  11. 4453 2230 170 .
  12. 5189 3280 200 3
  13. 10372 3880 207 3
  14. 4082 3400 200 3
  15. 11385 4330 221 3
  16. 14500 3900 204 2
  17. 15906 4290 204 3
  18. 3299 2110 163 3
  19. 5705 3690 212 4
  20. 4504 3180 193 3
  21. 5104 3220 200 2
  22. 3667 2750 179 2
  23. 3955 3430 197 3
  24. 3984 2120 163 5
  25. end
复制代码

[/code]

25
是周瑜 发表于 2021-6-22 13:42:03
  1. * Example generated by -dataex-. To install: ssc install dataex
  2. clear
  3. input int(price weight length rep78)
  4. 4099 2930 186 3
  5. 4749 3350 173 3
  6. 3799 2640 168 .
  7. 4816 3250 196 3
  8. 7827 4080 222 4
  9. 5788 3670 218 3
  10. 4453 2230 170 .
  11. 5189 3280 200 3
  12. 10372 3880 207 3
  13. 4082 3400 200 3
  14. 11385 4330 221 3
  15. 14500 3900 204 2
  16. 15906 4290 204 3
  17. 3299 2110 163 3
  18. 5705 3690 212 4
  19. 4504 3180 193 3
  20. 5104 3220 200 2
  21. 3667 2750 179 2
  22. 3955 3430 197 3
  23. 3984 2120 163 5
  24. end
复制代码

26
是袁啊 发表于 2021-11-4 21:59:17
* Example generated by -dataex-. To install: ssc install dataex
clear
input int(price weight length rep78)
4099 2930 186 3
4749 3350 173 3
3799 2640 168 .
4816 3250 196 3
7827 4080 222 4
5788 3670 218 3
4453 2230 170 .
5189 3280 200 3
10372 3880 207 3
4082 3400 200 3
11385 4330 221 3
14500 3900 204 2
15906 4290 204 3
3299 2110 163 3
5705 3690 212 4
4504 3180 193 3
5104 3220 200 2
3667 2750 179 2
3955 3430 197 3
3984 2120 163 5
end

27
小卒←_← 发表于 2022-3-21 16:10:55
  1. [CODE]
  2. * Example generated by -dataex-. To install: ssc install dataex
  3. clear
  4. input str18 make int(price mpg rep78) float headroom int(trunk weight length turn displacement) float gear_ratio byte foreign
  5. "AMC Concord"   4099 22 3 2.5 11 2930 186 40 121 3.58 0
  6. "AMC Pacer"     4749 17 3   3 11 3350 173 40 258 2.53 0
  7. "AMC Spirit"    3799 22 .   3 12 2640 168 35 121 3.08 0
  8. "Buick Century" 4816 20 3 4.5 16 3250 196 40 196 2.93 0
  9. "Buick Electra" 7827 15 4   4 20 4080 222 43 350 2.41 0
  10. end
  11. label values foreign origin
  12. label def origin 0 "Domestic", modify
复制代码

[/code]

28
2015lqh 学生认证  发表于 2023-2-22 16:45:03
  1. * Example generated by -dataex-. For more info, type help dataex
  2. clear
  3. input str18 make int(price mpg rep78) float headroom int trunk
  4. "AMC Concord"    4099 22 3 2.5 11
  5. "AMC Pacer"      4749 17 3   3 11
  6. "AMC Spirit"     3799 22 .   3 12
  7. "Buick Century"  4816 20 3 4.5 16
  8. "Buick Electra"  7827 15 4   4 20
  9. "Buick LeSabre"  5788 18 3   4 21
  10. "Buick Opel"     4453 26 .   3 10
  11. "Buick Regal"    5189 20 3   2 16
  12. "Buick Riviera" 10372 16 3 3.5 17
  13. "Buick Skylark"  4082 19 3 3.5 13
  14. end
复制代码

29
Recardo_W 发表于 2024-3-22 20:47:14
  1. * Example generated by -dataex-. For more info, type help dataex
  2. clear
  3. input long(id S0101e) str501 S0702a float firm_age str24 prov_off
  4. 2 385297 "深圳市地铁集团有限公司"                                            29 "广东省"
  5. 2 542000 "0"                                                                            30 "广东省"
  6. 2 431475 "0"                                                                            31 "广东省"
  7. 6  72755 "深圳市人民ZF国有资产监督管理委员会"                       28 "广东省"
  8. 6      . "深圳市人民ZF国有资产监督管理委员会"                       29 "广东省"
  9. 6  92125 ""                                                                             30 "广东省"
  10. 8      . "中国国投高新产业投资有限公司"                                   28 "北京市"
  11. 8      . "中国国投高新产业投资有限公司"                                   29 "北京市"
  12. 8      . ""                                                                             30 "北京市"
  13. 9      . "0"                                                                            29 "广东省"
  14. 9      . "0"                                                                            30 "广东省"
  15. 9      . ""                                                                             31 "广东省"
  16. 10      . "佳源创盛控股集团有限公司,浙江佳源房地产集团有限公司" 25 "广东省"
  17. 10      . "佳源创盛控股集团有限公司"                                         26 "广东省"
  18. 10      . ""                                                                             27 "广东省"
  19. 11      . "深圳市投资控股有限公司"                                            28 "广东省"
  20. 11      . "深圳市投资控股有限公司"                                            29 "广东省"
  21. 11      . "深圳市投资控股有限公司"                                            30 "广东省"
  22. 12      . "0"                                                                            28 "广东省"
  23. 12 149794 "0"                                                                            29 "广东省"
  24. end
复制代码

30
努力学习的小许 发表于 2024-4-11 16:47:32

  1. * Example generated by -dataex-. For more info, type help dataex
  2. clear
  3. input double 总资产增长率
  4. -.017287446185946465
  5.   .25523611903190613
  6.    .3969840109348297
  7.   .17852212488651276
  8.   -.4388483464717865
  9.   .20171979069709778
  10.    .3062485456466675
  11.    .1426023244857788
  12.    .2254897952079773
  13. -.061877962201833725
  14. end
复制代码

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-7 16:51