invalid name简而言之就是你的命名方式存在错误,比如你写一个gen命令,然后对象包含不允许的符号,系统就会报错。在你不提供具体code的情况下建议你参照help varname,自查命名方式是否有错。
此外,也可以考虑在Stata的用户论坛或社区中寻求其他用户的帮助。 示例代码 假设你有一个以数字开头的变量名1_variable,并且你想将它更改为var1,可以使用以下Stata命令: stata rename 1_variable var1 执行此命令后,1_variable将被重命名为var1,从而避免“invalid name”错误。
计量经济学 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
(variable w exists) gives me a syntax error — but not for the syntax command, but for marksample. Trace: - syntax varlist [if/] [, Weight(varname) nbins(integer 20) controls(varlist) absorb(varname) x_q(varname) connect NOAddmean reportreg create_x > q saving(string) *] - ...
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 ...
> > . 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.