Welcome to CHARLS Data Forum

论坛已改版,详情见‘论坛改版公告 Instructions for forum updates’
something new in the forum please read '论坛改版公告 Instructions for forum updates'
主题已锁定
CHARLS
Administrator
Administrator
帖子: 25
注册时间: 周一 12月 14, 2015 3:48 pm

Welcome to CHARLS Data Forum

帖子 CHARLS » 周四 1月 28, 2016 12:22 pm

Dear users, Welcome to CHARLS Data Forum. In this forum, you can post any questions on data issues you have. CHARLS staff will post the answers as fast as possible. At the same time, you might get help from other users. Also, you are warmly welcome to participate dicussions and share your experience and solutions to other people.
亲爱的数据用户,欢迎来到CHARLS数据论坛。您在使用数据中遇到任何问题或困难,欢迎来论坛询问及寻找答案,CHARLS项目组工作人员会尽快回复您的帖子。您还可能得到其他用户的回复。我们非常欢迎您参与讨论、帮助解答其它用户遇到的问题。您的经验和见解能在此分享给更多的数据用户。

If you forget the password, please click here. If you forget your loginname, You can login using e-mail address as loginname.
如果您忘记了论坛密码,可以 点击此找回密码。如果您忘记了自己的登录名,是可以使用邮箱名登录的。

For reading easily, We recommend using the code tag when plenty of programming codes are needed. For example, if you write like this in editor:
您发帖时,如果需要写较多的程序代码,建议您使用 code 标签包含起来,以便于阅读。例如,您在发帖编辑器写入以下代码:
[code]
foreach i of numlist 6/8 {
	local j=`i'-5
	gen ptype_receive`i'=ptype_enroll`i'
	replace ptype_receive`i'=0 if fn058_w2_`j'_==1
	replace ptype_receive`i'=1 if fn058_w2_`j'_==2
}
[/code]

It will be shown like this: 将会得到以下显示效果:

代码: 全选

foreach i of numlist 6/8 {
	local j=`i'-5
	gen ptype_receive`i'=ptype_enroll`i'
	replace ptype_receive`i'=0 if fn058_w2_`j'_==1
	replace ptype_receive`i'=1 if fn058_w2_`j'_==2
}
The tag mentioned above is one of tags, for more about other tags' usage, you can read this helper page:
以上提到的code标签是其中一种,您可以阅读这里了解更多其它标签的用法:
faq.php?mode=bbcode


CHARLS Team.

主题已锁定