Learn R Programming

x12 (version 1.0-2)

summary-methods: ~~ Methods for Function summary in Package x12 ~~

Description

Delivers a diagnostics summary for X12 output.

Usage

## S3 method for class 'x12Output':
summary(object, fullSummary=FALSE, spectra.detail=FALSE, almostout=FALSE, rsd.autocorr=NULL,
                      q2=FALSE, likelihood.stat=FALSE, aape=FALSE, id.rsdseas=FALSE,print=TRUE)
## S3 method for class 'x12Single':
summary(object, fullSummary=FALSE, spectra.detail=FALSE, almostout=FALSE, rsd.autocorr=NULL,
                      q2=FALSE, likelihood.stat=FALSE, aape=FALSE, id.rsdseas=FALSE, oldOutput=NULL,print=TRUE)                      
## S3 method for class 'x12Batch':
summary(object, fullSummary=FALSE, spectra.detail=FALSE, almostout=FALSE, rsd.autocorr=NULL,
                      q2=FALSE, likelihood.stat=FALSE, aape=FALSE, id.rsdseas=FALSE, oldOutput=NULL,print=TRUE)

Arguments

fullSummary
logical defining whether all available optional diagnostics below should be included in the summary.
spectra.detail
logical defining whether more detail on the spectra should be returned.
almostout
logical defining whether "almost" outliers should be returned.
rsd.autocorr
character or character vector specifying the type of autocorrelation of the residuals that should be returned, i.e. the autocorrelations and/or partial autocorrelations of the residuals and/or the autocorrelations of the squared residuals ("a
q2
logical defining whether the second Q statistic, i.e. the Q Statistic computed w/o the M2 Quality Control Statistic, should be returned as well.
likelihood.stat
if TRUE, the likelihood statistics AIC, AICC, BIC and HQ are returned as well as the estimated maximum value of the log likelihood function of the model for the untransformed data.
aape
logical defining whether the average absolute percentage error for forecasts should be returned.
id.rsdseas
logical defining whether the presence/absence of residual seasonality should be indicated.
oldOutput
integer specifying the number of previous X12 runs stored in the x12OldOutput slot of an x12Single-class or an x12Batch-class object that should be included in the summary.
print
TRUE/FALSE if the summary should be printed.

See Also

prev, cleanHistory

Examples

Run this code
# Summary of an "x12Single" object
x12path <- ".../x12a.exe"
s <- new("x12Single",ts=AirPassengers,tsName="air")
s <- setP(s,list(estimate=TRUE,regvariables="AO1950.1",outlier="all",critical=list(LS=3.5,TC=2.5),backcast_years=1/2))
s <- X12(s)
summary.output<-summary(s)
s <- X12(setP(s,list(arima=c(0,1,1),sarima=c(0,2,1))))
summary.output<-summary(s,oldOutput=1)
s <- X12(setP(s,list(arima=c(0,1,1),sarima=c(1,0,1))))
summary.output<-summary(s,fullSummary=TRUE,oldOutput=2)

# Summary of an "x12Batch" object
xb <- new("x12Batch",list(AirPassengers,AirPassengers,
				AirPassengers),tsName=c("air1","air2","air3"))
xb <- X12(xb)
xb <- setP(xb,list(arima=c(1,1,0),sarima=c(1,1,0)),1)
xb <- X12(xb)
xb <- setP(xb,list(regvariables=c("AO1955.5","AO1956.1","ao1959.3")),1)
xb <- setP(xb,list(regvariables=c("AO1955.4")),2)
xb<- X12(xb)
xb <- setP(xb,list(outlier="all"))
xb <- setP(xb,list(critical=list(LS=3.5,TC=2.5)),1)
xb <- setP(xb,list(regvariables=c("lpyear")),3)
xb<- X12(xb)
summary.output<-summary(xb,oldOutput=3)

Run the code above in your browser using DataLab