I use community-contributed command -tabout- (SSC, written by Ian Watson) to export two-way tables to Excel (.xls). In Stata 13, it supports Chinese characters well and gives me desired results as shown in first panel in picture that I posted below. However, in Stata 16 which use Unicode to encode Chinese characters, the -tabout- command gives result that full of unintelligible code as shown in the second panel below. Here I use auto.dta to give an example, I define value labels in Chinese and execute the -tabout- command. Like softwares gonna to be invalid when OS updating, it seems that many old version of community-contributed commands (authors maybe have no plan to update them) support poorly for Stata15/16. Is there anyway to solve this problem?
Code:
sysuse auto label define rep78 1 "一个" 2 "两个" 3 "三个" 4 "四个" 5 "五个及以上", modify label values rep78 rep78 label define foreign 0 "国产车" 1 "进口车", modify label values foreign foreign tabout rep78 foreign using auto.xls, cells(row) stats(chi2) h3(nil) append
0 Response to Unintelligible code in Stata 16
Post a Comment