找回密码
 注册
查看: 513|回复: 0

R语言 tis包 tis()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 10:40:17 | 显示全部楼层 |阅读模式
tis(tis)
tis()所属R语言包:tis

                                         Time Indexed Series
                                         时间索引系列

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

The function tis is used to create time-indexed series objects.
函数tis用于创建索引的时间序列对象。

as.tis and is.tis coerce an object to a time-indexed series and test whether an object is a time-indexed series.
as.tis和is.tis强制转换为对象的时间索引系列和测试一个对象是否是一个时间指数系列。


用法----------Usage----------


tis(data, start = 1, tif = NULL, frequency = NULL, end = NULL)
as.tis(x, ...)
## S3 method for class 'ts'
as.tis(x, ...)
## S3 method for class 'tis'
as.tis(x, ...)
## S3 method for class 'zoo'
as.tis(x, ...)
## Default S3 method:[默认方法]
as.tis(x, ...)
is.tis(x)



参数----------Arguments----------

参数:data
a numeric vector or matrix of the observed time-series values.  
所观察到的时间序列值的一个数值向量或矩阵。


参数:start
the time of the first observation. This can be a ti object, or anything that ti(start, tif = tif, freq = frequency), can turn into a ti object.   
的第一观察的时间。这可能是一个ti对象或什么ti(start, tif = tif, freq = frequency),可以变成一个ti对象的。


参数:...
other args to be passed to the method called by the generic function.  as.tis.default passes x and ... to the constructor function tis.  
其他ARGS要传递给调用的方法的通用功能。 as.tis.default通过x...到构造函数tis。


参数:tif
a ti Frequency, given as either a numerical code or a string. tif() with no arguments returns a list of the allowable numerical codes and names.   
的Ti的频率,给定的数字代码或一个字符串。 tif()不带任何参数,返回一个列表,允许的数字代码和名称。


参数:frequency
As an alternative to supplying a tif, some tifs can alternatively be specified by their frequency, such as 1 (annual), 2 (semiannual), 4 (quarterly), 6 (bimonthly), 12 (monthly), 24 (semimonthly), 26 (biweekly), 36 (tenday), 52 (weekly), 262 (business) and 365 (daily).  Many frequencies have multiple tifs associated with them.  For example, all of the tifs (wsunday, wmonday, ..., wsaturday) have frequency 52. In this case, specifying freq gets you the default weekly tif wmonday.  
作为一种替代方法,以提供一个tif,一些tifs可以选择指定用它们的频率,如1(年),2(每半年一次),4(季刊),6(双月刊),12 (月刊),24(半月刊),26(双周),36(10天),52(每周一次),262(业务)和365(每日)。许多频率有多个tif与他们相关联的。例如,所有的tif(wsunday,wmonday,...,wsaturday)有频率52。在这种情况下,指定freq让你的默认每周tifwmonday。


参数:end
the time of the last observation, specified in the same way as start.  
的时间指定的最后的观察,在相同的方式start。


参数:x
object to be tested (is.tis) or converted into a tis object.  As described in the details below, as.tis can deal with several different kinds of x.   
要测试的对象(is.tis),或转换成一个tis对象的。在下面的详细信息,as.tis可以处理几种不同类型的x。


Details

详细信息----------Details----------

The function tis is used to create tis objects, which are vectors or matrices with class of "tis" and a start attribute that is a ti (time index) object.  Time-indexed series are a form of time series that is more flexible than the standard ts time series. While observations for a ts object are supposed to have been sampled at equispaced points in time, the observation times for a tis object are the times given by successive increments of the more flexible time index contained in the series start attribute.  There is a close correspondence between Fame time series and tis objects, in that all of the Fame frequencies have corresponding tif codes.
函数tis被用来创建tis对象,这是向量或矩阵"tis"和start属性的类是一个ti(时间指数)的对象。时间指数系列是一种形式更灵活,比标准的ts时间序列的时间序列。虽然观察的ts对象应该已在均布点采样时间,观察时间的tis对象是连续递增的时间,更灵活的指数系列中包含start属性。有一个名人堂时间序列和tis对象的密切的对应关系,在该所有的名声频率有相应tif代码。

tis objects operate much like vanilla R ts objects. Most of the methods implemented for ts objects have tis variants as well.  Evaluate methods(class = "tis") to see a list of them.
tis对象很像香草Rts对象的操作。实现的方法ts对象有tis的变种以及。评估methods(class = "tis")看的列表。

One way or another, tis needs to figure out how to create a start attribute.  If start is supplied, the function ti is called with it, tif and frequency as arguments.  The same process is repeated for end if it was supplied. If only one of start and end was supplied, the other is inferred from it and the number of observations in data. If both start and end are supplied, the function rep is used to make data the length implied by end - start + 1.
这种或那种方式,tis需要找出如何创建一个start属性。如果start提供的功能ti调用它,tif和frequency作为参数。重复同样的过程为end如果它供给。如果只有一个start和,其他end提供,推断出它的若干意见data。如果两个start和end提供的功能rep是用来做的data的长度暗示的end - start + 1。

as.tis is a generic function with specialized methods for other kinds of time series, including zoo series from zoo. The fallback default method calls tis(x, ...).
as.tis是一个通用的功能与专门的方法对其他类型的时间序列,包括zoo系列zoo。回退的默认方法调用tis(x, ...)。


值----------Value----------

tis and as.tis return time-indexed series. is.tis returns TRUE or FALSE.
tis和as.tis返回时指数系列。 is.tis返回TRUE或FALSE。


注意----------Note----------

If the index of a zoo series is a ti, the coercion as.tis.zoo does is trivial.  For other kinds of zoo series, the function inferTi tries to figure out a time index that matches the times of the index of the zoo series. This may fail, as there are infinitely more possible kinds of zoo indexes than the finite number of time index frequencies.
如果index的zoo系列是一个ti,强制as.tis.zoo确实是微不足道。对于其他类型的zoo系列的功能inferTi试图找出一个时间指数,与时代相匹配的index的动物园系列。这可能会失败,因为有无限可能的种动物园指标比数量有限的时间指标频率。


参见----------See Also----------

Compare with ts.  See ti for details on time indexes.  cbind.tis combines several time indexed series into a multivariate tis, while mergeSeries merges series, and convert and aggregate convert series from one frequency to another. start.tis and end.tis return ti objects, while ti.tis returns a vector ti. There is a print method print.tis and several plotting methods, including lines.tis and points.tis. The window.tis method is also sufficiently different from the ts one to deserve its own documentation.
比较与ts。见ti时间索引的详细信息。 cbind.tis结合几个时间索引串联成一个多元tis,而mergeSeries融合系列,和convert和aggregate转换从一个频率到另一个系列。 start.tis和end.tis返回ti对象,,而ti.tis返回一个向量ti。有是打印方法print.tis和几个绘图方法,包括lines.tis和points.tis。也完全不同于值得自己的文档的window.tis1ts方法。


实例----------Examples----------


tis(1:48, start = c(2000, 1), freq = 12)
tis(1:48, start = ti(20000101, tif = "monthly"))    ## same result[#相同的结果]
tis(0, start = c(2000,1), end = c(2000,52), tif = "weekly")

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-12-1 00:35 , Processed in 0.022416 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表