楼主: 荜羽522
10058 7

[问答] 请教局部多项式回归locpoly [推广有奖]

  • 0关注
  • 0粉丝

大专生

43%

还不是VIP/贵宾

-

威望
0
论坛币
154 个
通用积分
10.1000
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
5264 点
帖子
14
精华
0
在线时间
80 小时
注册时间
2010-12-10
最后登录
2024-11-16

楼主
荜羽522 发表于 2011-4-20 19:43:54 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
请教各位大侠关于局部多项式回归有没有具体的软件操作资料可依据,本人是R软件初学者,关于locpoly(x,y,bandwidth=h)这样一个命令能输出什么预测值?应用什么函数调用呢?  目前自己只知道用lines()画出图像,使用summary()时输出
Length Class
Mode

x 401
-none- numeric

y 401
-none- numeric

这个代表什么意思呢?  不是按理论来讲应该要输出在每一观测点的多项式展开式的系数预测值吗?该用什么命令?
二维码

扫码加我 拉你入群

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

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

关键词:locpoly 局部多项式回归 局部多项式 poly 多项式 请教 局部 多项式 locpoly

沙发
o5104369 在职认证  发表于 2012-1-5 18:45:27
locpoly是非参数方法中的局部线性估计。可以再R软件中用?locpoly查看函数解释。

藤椅
o5104369 在职认证  发表于 2012-1-5 18:47:05
Usage
locpoly(x, y, drv = 0L, degree, kernel = "normal",
        bandwidth, gridsize = 401L, bwdisc = 25,
        range.x, binned = FALSE, truncate = TRUE)

Arguments
x vector of x data. Missing values are not accepted.  
bandwidth the kernel bandwidth smoothing parameter. It may be a single number or an array having length gridsize, representing a bandwidth that varies according to the location of estimation.  
y vector of y data. This must be same length as x, and missing values are not accepted.  
drv order of derivative to be estimated.  
degree degree of local polynomial used. Its value must be greater than or equal to the value of drv. The default value is of degree is drv + 1.  
kernel "normal" - the Gaussian density function. Currently ignored.  
gridsize number of equally-spaced grid points over which the function is to be estimated.  
bwdisc number of logarithmically-equally-spaced bandwidths on which bandwidth is discretised, to speed up computation.  
range.x vector containing the minimum and maximum values of x at which to compute the estimate.  
binned logical flag: if TRUE, then x and y are taken to be grid counts rather than raw data.  
truncate logical flag: if TRUE, data with x values outside the range specified by range.x are ignored.  

板凳
猪宝宝0107 在职认证  学生认证  发表于 2014-12-3 09:04:36
请问解决了吗,要输出在每一观测点的多项式展开式的系数预测值吗?该用什么命令?

报纸
snakepointid 发表于 2015-6-17 13:51:58
建议使用Piecewise Polynomials方法,即把自变量分成不同的连续区域,针对不同区域拟合不同的多项式回归。
library(spline)
fit<-lm(y~bs(x,df=))
其中df默认为3,即有立方项。

地板
seuwangw 发表于 2017-3-30 20:53:54
可以展开的,不过要用到一个函数,我找了好久才找到,一般书上都不写这个

7
meringueccc 发表于 2019-3-27 12:21:31
seuwangw 发表于 2017-3-30 20:53
可以展开的,不过要用到一个函数,我找了好久才找到,一般书上都不写这个
请问要用到什么函数呢?谢谢!

8
suoshenfeng0 发表于 2020-3-24 20:48:52
请问你现在知道是什么函数了吗,能不能告诉我呀

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-19 01:05