invalid name简而言之就是你的命名方式存在错误,比如你写一个gen命令,然后对象包含不允许的符号,系统就会报错。在你不提供具体code的情况下建议你参照help varname,自查命名方式是否有错。
例如,将data set.dta改为dataset.dta,或将变量名my long variable name改为my_long_var_name。 检查并删除重复:如果数据集已存在同名变量或文件,可以考虑删除或重命名现有的变量/文件。 使用引号:虽然不推荐,但在某些情况下,如果文件名或变量名必须包含特殊字符(尽管这通常不是好的做法),可以尝试在Stata命令中...
计量经济学 Stata 工具变量 instrumental variable 网络求助 2SLS 想请教各位大佬如何解决2sls invalid name这条命令?[图片] 以上是要求和给出的Stata命令 [图片] 以上是我按照命令跑出来的结果,结果都显示这一个问题,到底是为什么啊该怎么办呢?显示全部 ...
stata no panel variable set,use tssethow to deal with it this is the help from stata.[P] error ...Return code 198invalid syntax;___ invalid;range invalid;___ invalid obs no;invalid filename;___ invalid varnam
describe Contains data from https://www.stata-press.com/data/r18/hosp2015.dta Observations: 3,935 Fictional WA hospital discharges Variables: 18 6 Apr 2022 13:10 Variable name Storage Display type format Value label Variable label hospid age sex ins los atype asource aday dmonth dstatus ...
(varname) connect NOAddmean reportreg create_xq saving(string) *] marksample touse Now all works fine until I try to specify a weight. Because having a ", weight(w)" option (variable w exists) gives me a syntax error — but not for the syntax command, but for marksample. Trace: -...
> > . The problem is that you have negative time values. If you -set trace on- and then run -xtdes- you will see that it chokes when tries to create a new variable named _T`time value', but _T-24 is not a valid name.