
在开始用unicode之前是不能打开任何数据库的,否则Stata会提醒你data in memory would be lost 还有there must be no data in memory]
cd "D:\long term care\CHARLS\stata\data\household_and_community_questionnaire_data" 先设置你的working directory
unicode analyze psudta
(Directory /bakstunicode created; please do not delete)
File summary (before starting):
1 file(s) specified
1 file(s) to be examined
File psudta (Stata dataset)
2 str# variables need translation
----------------------------------------------------------------------------------------------------------
File needs translation Use unicode translate on this file
File psudta needs translation
File summary:
1 file(s) need translation
总结:Stata告诉你,你这个file需要转换
这里就是让Stata把数据转换为支持中文的UTF-8,转换完毕后,检查数据,中文终于不是乱码了,大功告成!
做好pca分析后,根据提取的主成分或因子数量,键入predict 新变量名称1 新变量名称2-新变量名称n,n对应产生的因子个数,如果只是提取一个主成分,则只要键入predict 新变量名
以上就是关于Stata 中文字符显示成问号,该怎么解决全部的内容,包括:Stata 中文字符显示成问号,该怎么解决、如何在stata现有数据库中提取一个子集做回归、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)