全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
2172 3
2015-07-01
悬赏 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!
二维码

扫码加我 拉你入群

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

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

全部回复
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)?
二维码

扫码加我 拉你入群

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

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

2015-7-1 23:02:11
What's X1?
二维码

扫码加我 拉你入群

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

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

2020-9-24 15:27:12
楼主用的数据是面板还是截面?
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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