全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 统计软件培训班VIP答疑区
1838 1
2010-03-10
现在有一个数据,与之对应的是一个完全没有规律的时间点序列。
问题是,如果将之构造成一个时间序列?即一列日期自定的序列为时间序列

如果用ts命令, frequency那些没法写,只能是月度或季度数据
二维码

扫码加我 拉你入群

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

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

全部回复
2010-3-10 16:35:23
你好,ts主要用来生成有规则的时间序列。对于无规则的,可以尝试如下几个包,他们的介绍如下:
•The zoo package provides infrastructure for regularly and irregularly spaced time series using arbitrary classes for the time stamps (i.e., allowing all classes from the previous section). It is designed to be as consistent as possible with "ts". Coercion from and to "zoo" is available for all other classes mentioned in this section.
•The package xts is based on zoo and provides uniform handling of R's different time-based data classes.
•Various packages implement irregular time series based on "POSIXct" time stamps, intended especially for financial applications. These include "its" from its, "irts" from tseries, and "fts" from fts.
•The class "timeSeries" in timeSeries (previously: fSeries) implements time series with "timeDate" time stamps.
•The class "tis" in tis implements time series with "ti" time stamps.
•The package tframe contains infrastructure for setting time frames in different formats.
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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