楼主: benz1985
5228 7

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

  • 4关注
  • 5粉丝

已卖:17份资源

学科带头人

80%

还不是VIP/贵宾

-

威望
0
论坛币
24335 个
通用积分
60.3530
学术水平
13 点
热心指数
30 点
信用等级
20 点
经验
1039 点
帖子
612
精华
0
在线时间
4172 小时
注册时间
2006-12-31
最后登录
2025-12-26

楼主
benz1985 在职认证  发表于 2012-10-18 10:05:45 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
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("._") )
我合成的图都都没法带置信区间了,谢谢
二维码

扫码加我 拉你入群

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

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

关键词:置信区间 非参数 Gaussian twoway kernel 合成 曲线 置信区间 如何

沙发
h3327156 发表于 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)

藤椅
benz1985 在职认证  发表于 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

板凳
fgleric 发表于 2012-10-19 10:04:58
唉,惭愧,都忘得差不多了,帮不上忙

报纸
h3327156 发表于 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,应该有不少东西。

祝 顺利 & 开心

地板
benz1985 在职认证  发表于 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的依据是什么?

7
h3327156 发表于 2012-10-22 09:35:17
benz1985 发表于 2012-10-21 14:40
g ub=s+1.645*se
g lb=s-1.645*se
加减1.645的依据是什么?
手册中提到When the bias is negligible the normal-approximation method yields…
那个就是z值啦  您也可视为the standard Gaussian distribution

先前所述是自行建立的方法。

可能比较好的方法是采用指令tw lpolyci

我太废了! 您听听参考就好,不必太认真。

8
benz1985 在职认证  发表于 2012-10-22 12:41:38
h3327156 发表于 2012-10-22 09:35
手册中提到When the bias is negligible the normal-approximation method yields…
那个就是z值啦  您 ...
你已经教了不少了

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-30 00:31