全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 EViews专版
13369 9
2013-04-27
悬赏 50 个论坛币 已解决
HP滤波法只能做出来趋势图么?能求出数据么?怎么求?现在的我数据时按天来的,参数λ给定多少?趋势成分和波动成分怎么得到?我刚刚学滤波法 不太懂 求教了 谢谢

最佳答案

xuruilong100 查看完整内容

MATLAB中有hpfilter函数(或者在MATLAB的帮助文档内搜索Hodrick) Syntax hpfilter(S) hpfilter(S,smoothing) T = hpfilter(...) [T,C] = hpfilter(...) Description hpfilter(S) uses a Hodrick-Prescott filter and a default smoothing parameter of 1600 to separate the columns of S into trend and cyclical components. S is an m-by-n matrix with m samples from n time series. A plot displays eac ...
二维码

扫码加我 拉你入群

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

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

全部回复
2013-4-27 12:47:42
MATLAB中有hpfilter函数(或者在MATLAB的帮助文档内搜索Hodrick)


Syntax


hpfilter(S)
hpfilter(S,smoothing)
T = hpfilter(...)
[T,C] = hpfilter(...)

Description


hpfilter(S) uses a Hodrick-Prescott filter and a default smoothing parameter of 1600 to separate the columns of S into trend and cyclical components. S is an m-by-n matrix with m samples from n time series. A plot displays each time series together with its trend (the time series with the cyclic component removed).

hpfilter(S,smoothing) applies the smoothing parameter smoothing to the columns of S. If smoothing is a scalar, hpfilter applies it to all columns. If S has n columns and smoothing is a conformable vector (n-by-1 or 1-by-n), hpfilter applies the vector components of smoothing to the corresponding columns of S.

If the smoothing parameter is 0, no smoothing takes place. As the smoothing parameter increases in value, the smoothed series becomes more linear. A smoothing parameter of Inf produces a linear trend component.

Appropriate values of the smoothing parameter depend upon the periodicity of the data. The following reference suggests the following values:

Yearly — 100

Quarterly — 1600

Monthly — 14400

T = hpfilter(...) returns the trend components of the columns of S in T, without plotting.

[T,C] = hpfilter(...) returns the cyclical components of the columns of S in C, without plotting.
二维码

扫码加我 拉你入群

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

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

2013-4-27 12:57:44
xuruilong100 发表于 2013-4-27 12:55
MATLAB中有hpfilter函数(或者在MATLAB的帮助文档内搜索Hodrick)
可是想用eviews matlab实在不怎么会用额 还是谢啦
二维码

扫码加我 拉你入群

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

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

2013-4-27 12:58:30
想简单操作就用Eviews,复杂一点就用matlab处理。
二维码

扫码加我 拉你入群

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

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

2013-4-27 13:00:57
jackps 发表于 2013-4-27 12:57
可是想用eviews matlab实在不怎么会用额 还是谢啦
只是调用一下函数而已, 没难度啊
二维码

扫码加我 拉你入群

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

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

2013-4-27 13:04:20
fwushi815 发表于 2013-4-27 12:58
想简单操作就用Eviews,复杂一点就用matlab处理。
eviews改怎么操作哦  怎么才能取得数据额。。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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