全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件
3493 6
2010-12-02
各位大佬,有没有人知道,如果要进行非参数估计,比如使用核方法、局部多项式回归、正则化方法等。。。。需要什么样的软件支持。
SPSS和EVIEWS能做吗?
二维码

扫码加我 拉你入群

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

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

全部回复
2010-12-2 16:54:36
stata 和R都可以
二维码

扫码加我 拉你入群

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

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

2010-12-2 21:29:49
谢谢楼上。。有没有这方面的操作指南?
二维码

扫码加我 拉你入群

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

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

2010-12-3 01:41:42
R, there are some buildin
packages for implementing the local polynomial estimate. For example, the package
KernSmooth contains several functions.Function bkde() computes the kernel density
estimate and Function bkde2D() computes the 2D kernel density estimate.Function locpoly() is for the local polynomial fitting including a local polynomial estimate of the density of X.

# Define the local constant estimator with R
local.constant=function(y,x,z,h,ker){
# parameters: x=variable; h=bandwidth; z=grid point; ker=kernel
nz<-length(z)
nx<-length(x)
x0=rep(1,nx*nz)
dim(x0)=c(nx,nz)
x1=t(x0)
x0=x*x0
x1=z*x1
x0=x0-t(x1)
if(ker==1){x1=kernel(x0/h)} # Epanechnikov kernel
if(ker==0){x1=dnorm(x0/h)} # normal kernel
x2=y*x1
f1=apply(x1,2,mean)
f2=apply(x2,2,mean)
f3=f2/f1
return(f3)
}
二维码

扫码加我 拉你入群

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

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

2013-7-22 18:37:25
关注!!!!!!!!!
二维码

扫码加我 拉你入群

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

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

2013-7-22 20:45:51
chinachun 发表于 2010-12-3 01:41
R, there are some buildin
packages for implementing the local polynomial estimate. For example, the ...
这是蔡老师讲义上的代码。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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