我用 的命令如下:
replace IP=1 if (Nnindcd==A01 & year>=2001 & year<=2005)
为什么这个命令显示A01 not found ????可是有A01呀。请教大家,谢谢!
- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input long Stkcd str14 Nnindcd int year double IP
- 600313 "A01" 2001 0
- 600506 "A01" 2001 0
- 600108 "A01" 2001 0
- 600672 "A01" 2001 0
- 600359 "A01" 2001 0
- 998 "A01" 2001 0
- 600709 "A01" 2001 0
- 600762 "A01" 2001 0
- 600265 "A02" 2001 0
- 592 "A02" 2001 0
- 735 "A03" 2001 0
- 600257 "A04" 2001 0
- 600097 "A04" 2001 0
- 798 "A04" 2001 0
- 769 "A05" 2001 0
- 713 "A05" 2001 0
- 780 "B06" 2001 0
- 600188 "B06" 2001 0
- 600395 "B06" 2001 0
- 600157 "B06" 2001 0
- 937 "B06" 2001 0
- 600121 "B06" 2001 0
- 600714 "B06" 2001 0
- 600508 "B06" 2001 0
- 600758 "B06" 2001 0
- 600123 "B06" 2001 0
- 552 "B06" 2001 0
- 983 "B06" 2001 0
- 406 "B07" 2001 0
- 817 "B07" 2001 0
- end