lag(stats)
lag()所属R语言包:stats
Lag a Time Series
滞后时间序列
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Compute a lagged version of a time series, shifting the time base back by a given number of observations.
计算的时间序列的滞后,转移给定数量的观测时间基地回。
用法----------Usage----------
lag(x, ...)
## Default S3 method:[默认方法]
lag(x, k = 1, ...)
参数----------Arguments----------
参数:x
A vector or matrix or univariate or multivariate time series
一个向量或矩阵或元或多元时间序列
参数:k
The number of lags (in units of observations).
滞后的数量(单位意见)。
参数:...
further arguments to be passed to or from methods.
进一步的参数被传递到或从方法。
Details
详情----------Details----------
Vector or matrix arguments x are coerced to time series.
向量或矩阵参数x强制时间序列。
lag is a generic function; this page documents its default method.
lag是一个通用的功能;页文件,其默认的方法。
值----------Value----------
A time series object.
时间序列对象。
注意----------Note----------
Note the sign of k: a series lagged by a positive k starts earlier.
注意k迹象:积极k落后了一系列启动较早。
参考文献----------References----------
The New S Language. Wadsworth & Brooks/Cole.
参见----------See Also----------
diff, deltat
diff,deltat
举例----------Examples----------
lag(ldeaths, 12) # starts one year earlier[始于一年前]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|