黃河泉 发表于 2018-2-23 08:47 
建议请用 dataex (先 ssc install dataex 并见说明) 将原始 Stata 资料中具有”代表性”的一部分资料列出 ...
- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input byte banklist str4 bank float(tppi tppm netinterestmargins) long time2
- 1 "ICBC" .9529697 -1.9582864 .8796268 1
- 1 "ICBC" 1.2158618 -.02057012 .8754687 2
- 1 "ICBC" 1.3748795 1.0370666 .8878912 3
- 1 "ICBC" 1.620813 1.1831311 .9001613 4
- 1 "ICBC" 1.8224083 1.5183485 .8501509 5
- 1 "ICBC" 2.0566628 2.0322425 .8329091 6
- 1 "ICBC" 2.1988676 3.198673 .7275486 7
- 1 "ICBC" 2.3149798 3.535145 .7030975 8
- 1 "ICBC" 2.438983 3.908015 .7080358 9
- 2 "ABC" .9529697 -1.9582864 .9477894 1
- end
- format %th time2
- label values time2 time2
- label def time2 1 "2013h1", modify
- label def time2 2 "2013h2", modify
- label def time2 3 "2014h1", modify
- label def time2 4 "2014h2", modify
- label def time2 5 "2015h1", modify
- label def time2 6 "2015h2", modify
- label def time2 7 "2016h1", modify
- label def time2 8 "2016h2", modify
- label def time2 9 "2017h1", modify
复制代码------------------ copy up to and including the previous line ------------------
Listed 10 out of 135 observations
不知道我做的对不对,感觉copy下来怪怪的[抚额],这个问题虽然不大了,打算以后导出表格手动改一下,但也还是挺想知道为什么的,谢谢啦~