全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
5162 7
2012-10-18
kernreg1 s1 x ,k(6) np(20) gen(s1_kern x_grid )
lpoly sfood x, kernel(gaussian) bwidth(0.9) degree(2) ci level(90)

twoway (line s1_kern x_grid) (line si_lpoly x_grid_1,lp("._") )
我合成的图都都没法带置信区间了,谢谢
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2012-10-18 20:25:23
主要是上置信区间与下置信区间的线,您要自行创立,
我提供一个较简单做法,您参考一下。
【就非参文献而言,这种置信区间是很烂的,有学问的要执行wild bootstrap下的confidence interval】

webuse motorcycle,clear
lpoly accel time, degree(3) kernel(gau) generate(x s) se(se) level(90)
g ub=s+1.645*se
g lb=s-1.645*se
kernreg1 accel time, b(2.4) k(4) np(100) gen(m2p4 g2p4)
sort x g2p4
twoway (line m2p4  g2p4 ) (line s x)   (line ub x)  (line lb x)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-10-19 09:34:44

如何把两种非参数的回归曲线合成一个图后还带着置信区间

h3327156 发表于 2012-10-18 20:25
主要是上置信区间与下置信区间的线,您要自行创立,
我提供一个较简单做法,您参考一下。
【就非参文献而 ...
each figure presents the estimated Engel curve for four models: thick black lines indicate 3SLS estimates of the symmetry-restricted exact model; thick gray lines indicate 3SLS estimates of the symmetry-restricted quadratic (having a second- instead of fifth-order polynomial iny) exact model; thin black lines indicate approximate SUR estimates of the model; and medium black lines indicate exact 3SLS estimates of the asymmetric model (italics denote shorthand). Estimates are computed at each percentile of log expenditures in the data, and estimated 90 percent confidence intervals (computed via the delta method) are displayed with small crosses for the exact 3SLS symmetry-restricted model at each fifth percentile of the expenditure distribution.

这个图有什么stata实现的方法,还是必须用R软件?

附件列表
4.png

原图尺寸 180.37 KB

4.png

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-10-19 10:04:58
唉,惭愧,都忘得差不多了,帮不上忙
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-10-19 17:12:11
benz1985 发表于 2012-10-19 09:34
each figure presents the estimated Engel curve for four models: thick black lines indicate 3SLS  ...
您附上的那个图,一看就知道是用R绘制的。
我对3SLS不是很熟,按文中所述,3SLS的一些模型变体,我个人不是很了解,
在Stata方面,您应当参考 reg3指令,查查看吧!【reg3里面可以估SUR】

至于R 我想,您google一下,3SLS in R,应该有不少东西。

祝 顺利 & 开心
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-10-21 14:40:51
h3327156 发表于 2012-10-18 20:25
主要是上置信区间与下置信区间的线,您要自行创立,
我提供一个较简单做法,您参考一下。
【就非参文献而 ...
g ub=s+1.645*se
g lb=s-1.645*se
加减1.645的依据是什么?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群