针对您的问题“string variables not allowed in varlist; id is a string variable”,以下是我的详细回答: 1. 解释字符串变量在varlist中不允许的原因 在Stata中,某些命令或函数对变量类型有特定要求。varlist通常是指一系列要处理的变量列表,而一些命令,如xtset(用于设定面板数据的面板标识符和时间变量),要求其...
. encode 经营活动产生的现金流量净额元,gen (cfo) 5.滞后命令后time variable not setr(111); . xtset id 会计期间 string variables not allowed in varlist; id is a string variable r(109); 变量属性 egen iid=group(id) egen year=group( 会计期间 ) xtset iid year 时间变量中有重复 duplicates ...
但却出现以下提示variables wave commid hhid line do not uniquely identify observations in the using data,我曾尝试加入省份变量或删掉commid,但是仍然不行,我大概查看了以下,感觉用wave hhid和line,三个变量就能确定是同一个样本,不知为什么不能合并,不知大家是如何合并的,请多多指...