X12(x12)
X12()所属R语言包:x12
~~ Methods for Function X12 in Package x12 ~~
~~方法在包装功能X12 X12~~
译者:生物统计家园网 机器人LoveR
描述----------Description----------
~~ Methods for function X12 in package x12 ~~
功能X12在包x12~~~~方法
用法----------Usage----------
X12(object,x12Parameter=new("x12Parameter"),x12BaseInfo=new("x12BaseInfo"),...)
参数----------Arguments----------
参数:object
object of class ts, x12Single-class or x12Batch-class
对象类ts,x12Single-class或x12Batch-class
参数:x12Parameter
object of class x12Parameter
对象的类x12Parameter
参数:x12BaseInfo
object of class x12BaseInfo
对象的类x12BaseInfo
参数:...
at the moment only forceRun=FALSE
目前仅forceRun = FALSE
方法----------Methods----------
值----------Value----------
An S4 object of class x12Output-class if object is of class ts
一个S4对象的类x12Output-class如果object类ts
An S4 object of class x12Single-class if object is of class x12Single-class
一个S4对象的类x12Single-class如果object类x12Single-class
An S4 object of class x12Batch-class if object is of class x12Batch-class
一个S4对象的类x12Batch-class如果object类x12Batch-class
(作者)----------Author(s)----------
Alexander Kowarik, Angelika Meraner
源----------Source----------
http://www.census.gov/srd/www/x12a/
参见----------See Also----------
summary, plot
summary,plot
实例----------Examples----------
## Not run: [#不运行:]
x12path <- ".../x12a.exe"
xts <- X12(AirPassengers)
summary(xts)
xs <- X12(new("x12Single",ts=AirPassengers))
summary(xs)
xb<-X12(new("x12Batch",list(AirPassengers,AirPassengers,AirPassengers)))
summary(xb)
#Create new batch object with 4 time series[创建一批新的对象有4个时间序列]
xb <- new("x12Batch",list(AirPassengers,AirPassengers,AirPassengers,AirPassengers))
# change the automdl to FALSE in all 4 elements[在所有4个元素为FALSE,改变automdl]
xb <- setP(xb,list(automdl=FALSE))
#change the arima and sarima setting for the first ts object[改变ARIMA和的SARIMA设置为第一个TS对象]
xb <- setP(xb,list(arima=c(1,1,0),sarima=c(1,1,0)),1)
#change the arima and sarima setting for the second ts object[改变ARIMA和的SARIMA设置为第二TS对象]
xb <- setP(xb,list(arima=c(0,1,1),sarima=c(0,1,1)),2)
#change the arima and sarima setting for the third ts object[改变ARIMA和的SARIMA设置为第三TS对象]
xb <- setP(xb,list(arima=c(0,1,1),sarima=c(1,1,1)),3)
#change the arima and sarima setting for the fourth ts object[改变ARIMA和的SARIMA设置为第四TS对象]
xb <- setP(xb,list(arima=c(1,1,1),sarima=c(1,1,1)),4)
#run X12 on all series[运行X12全系列]
xb <- X12(xb)
summary(xb)
#Set automdl=TRUE for the first ts[设置automdl的第一个TS = TRUE]
xb <- setP(xb,list(automdl=TRUE),1)
#rerun X12 on all series (the binaries will only run on the first one)[重新运行X12全系列(二进制文件将只能运行在第一个)]
xb <- X12(xb)
#summary with oldOutput[总结与oldOutput]
summary(xb,oldOutput=10)
#Change the parameter and output of the first series back to the first run[在第一次运行中改变参数和输出的第一串联回]
xb <- prev(xb,index=1,n=1)
#summary with oldOutput (--- No valid previous runs. ---)[总结oldOutput(---以前没有有效的运行。---)]
summary(xb,oldOutput=10)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|