楼主: 也赶上了
2937 1

[数据挖掘理论与案例] Stata绘制附加漏斗图 [推广有奖]

  • 0关注
  • 0粉丝

学前班

90%

还不是VIP/贵宾

-

威望
0
论坛币
741 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
193 点
帖子
2
精华
0
在线时间
4 小时
注册时间
2016-12-24
最后登录
2018-12-18

30论坛币

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'    时,总提示无效代码,前面的步骤都可以执行,有大神能帮帮忙吗?

上次做是可以的,不知道这次怎么不行了 2148b6b08a6918817773480aed0da887_3316493567568198273-8w.png


关键词:Stata tata 漏斗图 horizontal summarize
沙发
也赶上了 发表于 2018-12-10 15:37:59 |只看作者 |坛友微信交流群
编程就是问题多多呀

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-27 00:31