楼主: ReneeBK
1173 0

[学习资料] SPSS Technotes: Calculating impulse and step response functions [推广有奖]

  • 1关注
  • 62粉丝

VIP

学术权威

14%

还不是VIP/贵宾

-

TA的文库  其他...

R资源总汇

Panel Data Analysis

Experimental Design

威望
1
论坛币
49422 个
通用积分
52.2904
学术水平
370 点
热心指数
273 点
信用等级
335 点
经验
57815 点
帖子
4006
精华
21
在线时间
582 小时
注册时间
2005-5-8
最后登录
2023-11-26

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
Question

I'm running a transfer function model in SPSS Statistics. I need to calculate the changes in predictions or forecasts for a unit change in a predictor variable, either for a pulse change that occurs at a single time point and doesn't last or for a step change that persists. Can this be done?

Answer

[size=1em]This can be done using the scoring functionality of the Forecasting module. The procedure accessed via Analyze>Forecasting>Create Models is the TSMODEL procedure. Underneath that on the menus is an option to Apply Models. This option accesses the TSAPPLY procedure, which allows you to apply a saved model to new data, and this functionality makes it relatively easy to compute the impulse and step response functions or changes in forecasts/predictions associated with either a pulse or step change in a predictor in a transfer function model. To do this, execute the following steps:

[size=1em]1) Run the desired transfer function model, saving the model to an XML file. The option to save the model to an XML file is on the Save tab of the TSMODEL (Create Models) dialog box. In command syntax, you use the OUTFILE keyword on the MODEL subcommand.

[size=1em]2) Create a new data file containing a sufficient number of cases or time periods to accommodate the model of interest, each case containing a value of 0 for the predictor(s) and missing values for the dependent variable series, along with a DATE_ variable that begins one time point beyond the end of the observed series on which the model was derived. This can be done either in the Data Editor by typing in data and using Data>Define Dates. It can also be done using command syntax with an input program. Following is an example for monthly data, where a series is extended for two years following December of 2012, with a predictor named X and a dependent named Y:

[size=1em]
DATASET DECLARE forecast.
NEW FILE.
INPUT PROGRAM.
LOOP #i=1 to 24.
COMPUTE X=0.
IF X>10 Y=1.
END CASE.
END LOOP.
END FILE.
END INPUT PROGRAM.
EXECUTE.
DATASET ACTIVATE forecast.
DATE Y 2013 M 1.

3) Run TSAPPLY (Apply Models), saving forecasts (Predicted Values on the Save tab of the dialog). Other than specifying the file and the saving of predictions, no other changes need be made, but you can turn off output if desired.

4) Change the predictor variable of interest by the unit change of interest (typically 1) for all cases in the dataset.

5) Run TSAPPLY again, again saving predictions.

6) Compute the difference between the two saved sets of predictions, subtracting the first set from the second set. In the menus, Transform>Compute Variable.

Now examine the computed differences. These are the step response function. If the system is stable and you've created a sufficient number of time points to allow for the model (i.e., the ARIMA and seasonal ARIMA properties and any lags included in the transfer function(s), you should see a point at which the differences are stable. This value is the long-term change in the response for a continued (step) increase in the predictor. The first value among the differences is the impulse response resulting from a change in the predictor for only a single time point.

If you want to see the impulse response function, change the predictor of interest to 0 for all but the first case and reapply the model, then compute differences between the new predictions and the predictions with all values set to 0. You should see the first value from the step response function in the first case of the new differences, repeated for as many time points as are appropriate given the model, followed by 0 values. The sum of the non-zero values should equal the stable value to which the step response function converged.



二维码

扫码加我 拉你入群

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

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

关键词:Calculating Functions function response impulse function

已有 1 人评分经验 热心指数 收起 理由
xddlovejiao1314 + 10 + 1 精彩帖子

总评分: 经验 + 10  热心指数 + 1   查看全部评分

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

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

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

GMT+8, 2024-6-16 14:50