local n= _N
metan logor selogor,notable nograph
local ES= r(ES)
summarize selogor, meanonly
local semax = r(max)
metatrim logor selogor, funnel save(metatrimdata, replace)
use metatrimdata, clear
local nfilled = _N - `n'
metan filled fillse, notable nograph
local filledES=r(ES)
confunnel filled fillse if _n > `nfilled', contours(5 10) contcolor(gs10) extraplot(scatter fillse filled if _n < = `nfilled', m(T) mc(gs8) || function `ES', horizontal lc(black) range(0 `semax') || function `filledES', horizontal lc(gs8) range(0 `semax'))
代码如上,执行至local nfilled = _N - `n' 时,总提示无效代码,前面的步骤都可以执行,有大神能帮帮忙吗?
上次做是可以的,不知道这次怎么不行了