PSM-did中第三步,计算倾向得分处

问题遇到的现象和发生背景

在替换控制变量与输出变量后,出现错误,红字标识为'tmp' found where nothing expected

问题相关代码,请勿粘贴截图

set seed 1000gen tmp = runiform()sort tmpglobal xlist "edu HSR lnDpeo lnlong Dhroad lnC lnFK lnGT dx city"psmatch2 T $xlist , n(3) out( lnRGDP ) logit ate

运行结果及报错内容

'tmp' found where nothing expected

我的解答思路和尝试过的方法

感觉tmp应该是需要生成的变量,但执行命令后显示无此变量,可能对命令含义理解有误,望解答!万分感谢!

我想要达到的结果

如何调整代码继续下去