as.timedData(smfsb)
as.timedData()所属R语言包:smfsb
Convert a time series object to a timed data matrix
定时的数据矩阵转换成一个时间序列对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function converts a time series object to a timed data matrix, similar to that produced by simTimes. The main purpose is for passing data to the function pfMLLik, which expects data encoded in this format.
这个函数把一个时间序列对象到一个定时的数据矩阵,产生的simTimes。其主要目的是传递数据的功能pfMLLik,预计这种格式的编码数据。
用法----------Usage----------
as.timedData(timeseries)
参数----------Arguments----------
参数:timeseries
An R timeseries object, such as produced by the functions ts or simTs.
R的时间序列对象,如生成的由函数ts或simTs。
值----------Value----------
An R matrix object with row names corresponding to observation times, similar to that produced by simTimes.
行名称对应的观测时间,产生的simTimesR矩阵对象。
参见----------See Also----------
simTs, ts, simTimes, pfMLLik
simTs,ts,simTimes,pfMLLik
实例----------Examples----------
truth=simTs(c(x1=50,x2=100),0,20,2,stepLVc)
simData=truth+rnorm(prod(dim(truth)),0,5)
timedData=as.timedData(simData)
print(timedData)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|