楼主: snowcat731
3324 2

【R】急切求助 time series regression project 时间序列论文 [推广有奖]

  • 0关注
  • 0粉丝

初中生

4%

还不是VIP/贵宾

-

威望
0
论坛币
1 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
226 点
帖子
5
精华
0
在线时间
11 小时
注册时间
2010-1-18
最后登录
2020-5-11

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
我有一份project急着要交,但有没有什么头绪,请大家帮帮忙告诉我应该怎么做!!
project给了一组季度烈酒的卖出(Quarterly Sales of Alcoholic Spirits)数据,整篇用R来做数据

1,build a time series model
      首先是要用R建模
2,  deciding which model to fit
       决定用哪个model(ar?, ma?, arma??)
3,some of the data at the end of series, the length of, say, give 4 or 5 reasons, should held back and the data at the model is to be fitted the earlier part .
      给出4,5个解释, 数据的尾部的一部分长度为什么会抑制,和model为什么拟合前面部分??
4,forecast using the fitted model  
       用拟合模型预测
5,to demonstrate the capability of the model.
       证明model 的性能/容量

我现在不知道要怎样选用哪个model? 具体要怎么做??有人能告诉我如何分析的步骤么??
谢谢!!!
二维码

扫码加我 拉你入群

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

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

关键词:Time Series regression regressio Project regress 论文 序列 regression Series Project

spirit script.txt

1.28 KB

回帖推荐

yazi900 发表于3楼  查看完整内容

我有做过这个模型的,不过我都是用法语写的.我把我的基本程序放到下面,你照着试试看. library(tseries) sale=scan("C:\\Documents and Settings\\Dan\\BUREAU\\st\\xsales.txt") ts.plot(sale) shapiro.test(sale) lsale=log(sale) > ts.plot(lsale) dlsale=diff(diff(lsale),12) > ts.plot(dlsale) par(mfrow=c(2,1)) > acf(dlsale) > pacf(dlsale) 由上面的图我确定了SARIMA(1,1,1)*(1,1,0)12模型 然后再验证 m11 ...

HRI 发表于2楼  查看完整内容

1# snowcat731 You can calculate autocorrelation and partial autocorrelation and look up the shape of these two correlation to decide model structure (AR, ARMA, or ARIMA) and model order. As for detail, you can read book "Time Series Analysis Forecast and Control". This book provides you detail how to do it.

本帖被以下文库推荐

沙发
HRI 发表于 2010-2-7 03:42:05 |只看作者 |坛友微信交流群
1# snowcat731

You can calculate autocorrelation and partial autocorrelation and look up the shape of these two correlation to decide model structure (AR, ARMA, or ARIMA) and model order. As for detail, you can read book "Time Series Analysis Forecast and Control". This book provides you detail how to do it.

使用道具

藤椅
yazi900 发表于 2010-3-13 02:23:33 |只看作者 |坛友微信交流群
我有做过这个模型的,不过我都是用法语写的.我把我的基本程序放到下面,你照着试试看.

library(tseries)
sale=scan("C:\\Documents and Settings\\Dan\\BUREAU\\st\\xsales.txt")
ts.plot(sale)
shapiro.test(sale)
lsale=log(sale)
> ts.plot(lsale)
dlsale=diff(diff(lsale),12)
> ts.plot(dlsale)
par(mfrow=c(2,1))
> acf(dlsale)
> pacf(dlsale)
由上面的图我确定了SARIMA(1,1,1)*(1,1,0)12模型
然后再验证
m11=arima(x = dlsale, order = c(1, 1, 1), seasonal = list(order = c(1, 1, 0), period = 12))
对残差进行检验
tsdiag(m11)
r1=((m11$residuals)^2)
ts.plot(r1)
最后是GARCH模型
garch(lsale,order=c(1,0))

还有问题,可以给我邮件

使用道具

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

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

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

GMT+8, 2024-5-1 02:49