请选择 进入手机版 | 继续访问电脑版
楼主: lwjwsxph
1920 3

[问答] two question about how to use "npcoefbw" 可变系数非参数估计 [推广有奖]

  • 1关注
  • 5粉丝

硕士生

91%

还不是VIP/贵宾

-

威望
0
论坛币
4183 个
通用积分
36.0570
学术水平
12 点
热心指数
19 点
信用等级
12 点
经验
1377 点
帖子
75
精华
0
在线时间
281 小时
注册时间
2012-10-18
最后登录
2023-10-16

lwjwsxph 发表于 2015-7-1 22:50:07 |显示全部楼层 |坛友微信交流群
9论坛币
As a beginner of R, I have two question about how to use "npcoefbw", which must be very easy for you.I will appreciate it very much,if you can take a look at this:

1. My model is  y=g(z)+b(z)x=[1,x]*[g(z),b(z)]+e=w*beta(z)+e

2. The code I try is:
X<-data.frame(1,z)
Z<-data.frame(x,x)
bw<-npscoefbw(xdat=X,ydat=y,zdat=Z,betas=TRUE)
model<-npscoef(bw)

3.My question is:
(1) Is the code right
(2) I've got beta[1:n,1:3], while the supposed one is beta[1:n,1:2] since beta(z)=[g(z),b(z)].I'm not sure which two correspond to g(z) and b(z), and what's the details of the left one.

Thanks for attention or curiousness!

关键词:question About Quest 非参数估计 Bout 非参数估计 可变系数
How can we live a better life with public policy?
lwjwsxph 发表于 2015-7-1 22:58:53 |显示全部楼层 |坛友微信交流群
coef(model)
         Intercept            X1               z   
  [1,] 1868.449525 -3.464752e+00  4.473262e-07
  [2,]  826.675153 -5.975460e-01  2.053416e-07
  [3,] 2520.905509  4.123167e+00 -3.951344e-07
I've just find this, and beta 1:3 each correspond to Intercept,X1,z. Is the coefficient of z b(z)? Which one is g(z)?

使用道具

lwjwsxph 发表于 2015-7-1 23:02:11 |显示全部楼层 |坛友微信交流群
What's X1?

使用道具

chshy0403 发表于 2020-9-24 15:27:12 |显示全部楼层 |坛友微信交流群
楼主用的数据是面板还是截面?

使用道具

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

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

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

GMT+8, 2024-4-19 06:50