全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
3480 4
2013-05-05
在进行时间序列arima『stata』进行分析时,要求输入变量是 “time series”,通常我们用ts做 t时间序列数据,但是ts命令中
只能做年数据(frequency = 1)、季度数据(frequency = 3)、年数据(frequency = 12);不能做日数据、星期数据,或交易日数据。请问对于日数据、星期数据,或交易日数据怎么办?谢谢


ts(data = NA, start = 1, end = numeric(), frequency = 1,
   deltat = 1, ts.eps = getOption("ts.eps"), class = , names = )


二维码

扫码加我 拉你入群

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

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

全部回复
2013-5-5 21:10:27
of course frequency can help you,"The value of argument frequency is used when the series is sampled an integral number of times in each unit time interval. For example, one could use a value of 7 for frequency when the data are sampled daily, and the natural time period is a week, or 12 when the data are sampled monthly and the natural time period is a year. Values of 4 and 12 are assumed in (e.g.) print methods to imply a quarterly and monthly series respectively." now you know frequency can choose more than c(1,3,12)
二维码

扫码加我 拉你入群

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

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

2013-5-6 17:26:08
水天一色DIY 发表于 2013-5-5 21:10
of course frequency can help you,"The value of argument frequency is used when the series is sampled ...
Thanks very much!
二维码

扫码加我 拉你入群

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

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

2013-5-6 17:26:11
水天一色DIY 发表于 2013-5-5 21:10
of course frequency can help you,"The value of argument frequency is used when the series is sampled ...
Thanks very much!
二维码

扫码加我 拉你入群

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

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

2013-6-24 09:19:39
哈,我最近也是在做这个,原始数据是minute-rate~~
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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