Seasonal Adjustment with the R packages x12 and x12gui

Similar documents
January 2018 Air Traffic Activity Summary

DTTAS Quarterly Aviation Statistics Snapshot Quarter Report

DTTAS Quarterly Aviation Statistics Snapshot Quarter Report

DTTAS Quarterly Aviation Statistics Snapshot Quarter Report

Number of tourism trips of residents increased namely for leisure

AFTA Travel Trends. June 2017

AUCKLAND DESTINATION OVERVIEW

tourism in figures 2010

AUCKLAND DESTINATION OVERVIEW

Oct-17 Nov-17. Travel is expected to grow over the coming 6 months; at a slower rate

49 May-17. Jun-17. Travel is expected to grow over the coming 6 months; at a slower rate

Oct-17 Nov-17. Sep-17. Travel is expected to grow over the coming 6 months; at a slightly faster rate

Jan-18. Dec-17. Travel is expected to grow over the coming 6 months; at a slower rate

AFTA Travel Trends. July 2017

LOUIS ARMSTRONG NEW ORLEANS INTERNATIONAL AIRPORT For the Period Ending September 30, Enplaned Passengers by Airline

NOISE AND FLIGHT PATH MONITORING SYSTEM MELBOURNE QUARTERLY REPORT OCTOBER - DECEMBER 2012

SSP progress in Latvia. Overview

Yukon Tourism Indicators Year-End Report 2013

Report for Jan-Nov-2006 pdf. General Statistics

ATM Network Performance Report

NOISE AND FLIGHT PATH MONITORING SYSTEM BRISBANE QUARTERLY REPORT JULY - SEPTEMBER 2011

AUCKLAND DESTINATION OVERVIEW

12/10/2012 8:17 PM

NOISE AND FLIGHT PATH MONITORING SYSTEM BRISBANE QUARTERLY REPORT OCTOBER - DECEMBER 2013

U.S. DOMESTIC INDUSTRY OVERVIEW FOR MARCH

AIRSERVICES AUSTRALI A

NOISE AND FLIGHT PATH MONITORING SYSTEM MELBOURNE QUARTERLY REPORT JULY - SEPTEMBER 2011

Airport Capacity, Airport Delay, and Airline Service Supply: The Case of DFW

NOISE AND FLIGHT PATH MONITORING SYSTEM MELBOURNE QUARTERLY REPORT JULY - SEPTEMBER 2013

Visit Phoenix Market Update January Eric Kerr Director of Research & Business Analysis

With the completion of this project, we would like to follow-up on the projections as well as highlight a few other items:

Metra Board of Directors. Board Meeting November 11, 2011

SYSTEM BRIEF DAILY SUMMARY

Measures & Projections October 31, GoToBermuda.com

Airline industry outlook remains fragile

Passenger Traffic Achieves Strong Growth of 4.8% for the Month of August

Keflavik International Airport Passenger forecast 2018

The Geography of Climate

Tourism Snapshot A focus on the markets in which the CTC and its partners are active

Annex/FANS 17. ADS/CPDLC Report EUR/SAM Corridor: Index. Systems Direction Navigation and Surveillance Division. 2. Traffic Data Summary

LOUIS ARMSTRONG NEW ORLEANS INTERNATIONAL AIRPORT For the Period Ending August 31, Enplaned Passengers by Airline

Tourism in South Africa A statistical overview

EU banana sector Sarolta IDEI / Daniel VANDERELST / Lucie ZOLICHOVA

Belgium. Belgian Visitors in Finland Statistical Trends and Profile

ANGUILLA TOURISM HIGHLIGHTS FOR 2006 VISITOR ARRIVALS 72, % 60.1% Same Day Visitors 94,283. Tourist Arrivals I ( Winter ( Summer

AUCKLAND DESTINATION OVERVIEW

TOURISM PERFORMANCE 2017

The Economic Impact of Poole s Visitor Economy 2015

AIRSERVICES AUSTRALI A

Exhibit 4 Page 1 of 9

APA NOISE REPORT. January 2018

APA NOISE REPORT. August 2018

PERFORMANCE MEASURE INFORMATION SHEET #16

ST. EUSTATIUS. Sea Arrivals ( Summer ( Winter Yacht Arrivals 11, % 32.1%

PRELIMINARY WEB DOCUMENT

SAMPLE CLIENT. PPC Performance Report. Google AdWords Performance Detail Text Ad Performance Comparisons & Trend Analysis Revenue Tracking Data

International Visitation to the Northern Territory. Year ending December 2017

International Visitation to the Northern Territory. Year ending June 2017

Yukon Bureau of Statistics

APA NOISE REPORT. August 2017

International Visitation to the Northern Territory. Year ending September 2017

Supreme Court records, (bulk , )

MARKET NEWSLETTER No 57 January 2012

How Russians Spend Abroad 2010

The Economic Impact of Gloucestershire s Visitor Economy Forest of Dean district

The Economic Impact of Gloucestershire s Visitor Economy Forest of Dean district

Hotel Association of North Texas. Karrie Keen Director, Destination and Trend Operations

Hokitika Gorge, West Coast. newzealand.com INDIA. Market information about our Visitors and our Active Considerers

August 2014 Passenger and Cargo Traffic Statistics Reno-Tahoe International Airport

Board Box. October Item # Item Staff Page 1. Key Performance Indicators Sep 2018 M. Mungia Financial Report Aug 2018 H.

Latest market insights and marketing plans from VisitBritain/VisitEngland. Anke Monestel, VisitEngland 8 th February 2018

Table of Contents PAGE

Sound Transit Operations December 2014 Service Performance Report. Ridership

CRYSTAL RIVER CRUISES VALUE SAVINGS

Rotorua. newzealand.com. argentina. Market information about our Visitors and our Active Considerers

AUCKLAND DESTINATION OVERVIEW

METRO OPERATIONS COMMITTEE

FIXED ROUTE DASHBOARD JULY 2018

Measuring Ground Delay Program Effectiveness Using the Rate Control Index. March 29, 2000

Recommendations for Northbound Aircraft Departure Concerns over South Minneapolis

U.S. DOMESTIC INDUSTRY OVERVIEW FOR OCTOBER 2010 All RNO Carriers Systemwide year over year comparison

Table of Contents PAGE

CAPACITY PLANNING. CALENDAR OF MILESTONE DATES DECEMBER 2019 and MAY 2020 TIMETABLES (PRODUCTION SCHEDULE)

HOTEL INDUSTRY OVERVIEW. Texas

Annual Weather Book RECORDED BY NW RESEARCH & OUTREACH CTR. By: Michael Leiseth

Existing Services, Ridership, and Standards Report. June 2018

International Visitation to the Northern Territory. Year ending March 2017

West Somerset 2015 Local data version

SJC North and South Flow

Asheville Metro Economic Report 2014 Second Quarter

CAPACITY PLANNING. CALENDAR OF MILESTONE DATES DECEMBER 2018 and MAY 2019 TIMETABLES (PRODUCTION SCHEDULE)

The Role of Modeling in the Innovation of Sustainable Cassava Production. Department of Agriculture and Chiangmai University

THE DEFINITIVE CHOICE IN RIVER CRUISING 2018 & 2019 CRYSTAL RIVER CRUISES VA LUE SAVIN GS. The All-Inclusive CRYSTAL EXPERIENCE

Long Distance Travel Data: Challenges and Opportunities

The NESCAUM Method of Estimating Aircraft Emissions

Opioid Surveillance Jun 2017

TOURISM NEW ZEALAND OUR VISITORS UNDERSTANDING <1% <1% <1% HISTORIC VIEW TOTAL ARRIVALS YE APRIL 2017

Performance Metrics for Oceanic Air Traffic Management. Moving Metrics Conference Pacific Grove, California January 29, 2004 Oceanic Metrics Team

*FB Pamphlet DEPARTMENT OF THE ARMY US ARMY GARRISON FORT BELVOIR Fort Belvoir, Virginia FB Pamphlet October 2002

March 2014 Passenger and Cargo Traffic Statistics Reno-Tahoe International Airport

Transcription:

Alexander Kowarik 1,Angelika Meraner 1 and Matthias Templ 1,2 1. Statistics Austria 2. Vienna University of Technology user 2015 Aalborg, July 2015 Seasonal Adjustment with the R packages x12 and x12gu Kowarik, Meraner, Templ (STAT, TU) 1/ 20 Aalborg, 2015

Motivation X12-ARMA is widely used and state-of-the-art in many statistical o ces Statistical o ces (we) have to apply seasonal adjustment frequently and to many di erent time series Graphical analysis should always be included in the process Results should be reproducable and easy to modify (X-13-ARMA-SEATS is the successor if X12-ARMA, SEATS not yet implemented) æ R-packages x12 and x12gu Kowarik, Meraner, Templ (STAT, TU) 2/ 20 Aalborg, 2015

Features Access to X12-ARMA directly from within R (no spc, out,... files) Class oriented command line interface Change tracking for the X12-ARMA parameters and output Batch processing of multiple time series at once (in parallel) Easy generation of graphical output mport the parameter settings from spc files to R Kowarik, Meraner, Templ (STAT, TU) 3/ 20 Aalborg, 2015

Class x12single Objects of class x12single contain the following information ts - The original time serie x12parameter - The current X12-ARMA parameter setting x12output - The current X12-ARMA results x12oldparameter - All previous X12-ARMA parameter settings x12oldoutput - All previous X12-ARMA results Kowarik, Meraner, Templ (STAT, TU) 4/ 20 Aalborg, 2015

Methods x12single Methods for this class are: x12 - (Re)Run X12-ARMA setp,getp - Change/View parameters prev,cleanhistory - Revert to a previous X12 parameter setting and output plot,plotrsdacf,plotspec,plotseasfac - Plot methods s <- new("x12single", ts = AirPassengers, tsname = "air") s <- x12(s) forecast <- s@x12output@forecast Kowarik, Meraner, Templ (STAT, TU) 5/ 20 Aalborg, 2015

Class x12batch Objects of class x12batch Combination of multiple objects of class x12single nherit the methods from class x12single xb <- new("x12batch", list(airpassengers, AirPassengers, AirPassengers )) xb <- setp(xb, list(estimate = TRUE, outlier.types = "all") xb <- setp(xb, list(outlier.types = "LS", index=1) # options( x12.parallel=2) xb <- x12(xb) Kowarik, Meraner, Templ (STAT, TU) 6/ 20 Aalborg, 2015

Real example Batch - Tourism > dat <- read.csv2("http://bit.ly/1rtf31s") > tsobject <- lapply(split(dat[,5], list(dat[,2], dat[,3])), + # by state and country of origin + ts,start = c(1973,11), frequency = 12) > length(tsobject) [1] 774 > xb <- new("x12batch", tsobject[1:3]) > xb <- setp(xb,list(forecast_years=3)) The parameters for all objects are changed. > xb <- x12(xb) Time difference of 6.766999 secs Kowarik, Meraner, Templ (STAT, TU) 7/ 20 Aalborg, 2015

Real example Batch - Tourism > plot(xb@x12list[[1]], forecast = TRUE, + span = c(2008,4,2018,4), ylab = "Nights spend") Time Series with Forecasts Nights spend 30000 50000 70000 2008.1 2010.1 2012.1 2014.1 2016.1 2018.1 Date Kowarik, Meraner, Templ (STAT, TU) 8/ 20 Aalborg, 2015

Plot functions Output of the plot() method showing trend and forecasts with prediction intervals as well as the seasonally adjusted series. Time Series with Forecasts Value 100 200 300 400 500 600 700 1950.1 1952.1 1954.1 1956.1 1958.1 1960.1 1962.1 Date Original Seasonally Adjusted Trend Kowarik, Meraner, Templ (STAT, TU) 9/ 20 Aalborg, 2015

Plot functions Output of the plotrsdacf() function from the R package x12, showing the autocorrelations of the squared residuals from the regarma model. Autocorrelations of the Squared Residuals ACF 0.2 0.1 0.0 0.1 0.2 2 4 6 8 10 12 Lag Kowarik, Meraner, Templ (STAT, TU) 10 / 20 Aalborg, 2015

Plot functions Output of the plotspec() function, showing the spectrum of the seasonally adjusted series. Spectrum of the Seasonally Adjusted Series Decibels 40 35 30 0.0 0.1 0.2 0.3 0.4 0.5 Frequency Spectrum Seasonal Frequencies Trading Day Frequencies Kowarik, Meraner, Templ (STAT, TU) 11 / 20 Aalborg, 2015

Plot functions V Output of the seasonal factor plot (plotseasfac()). Seasonal Factors by period and S Ratios Value 0.8 0.9 1.0 1.1 1.2 1.3 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Seasonal Factors Mean S Ratio Replaced S Ratio Kowarik, Meraner, Templ (STAT, TU) 12 / 20 Aalborg, 2015

Plot functions V Output of the plot() method showing outliers in the RegARMA model. Original Series and Trend Value 100 200 300 400 500 600 1950 1952 1954 1956 1958 1960 Date Original AO Trend LS TC Kowarik, Meraner, Templ (STAT, TU) 13 / 20 Aalborg, 2015

Features x12gu Overview of all (implemented) X12-ARMA parameters nteractive adjustment of the parameters nteractive graphics Visualisation of the automatically detected outliers Easy addition, removal of manually selected outliers Kowarik, Meraner, Templ (STAT, TU) 14 / 20 Aalborg, 2015

Main View x12gu > xbn <- x12gu(xb) Kowarik, Meraner, Templ (STAT, TU) 15 / 20 Aalborg, 2015

Main View x12gu Kowarik, Meraner, Templ (STAT, TU) 16 / 20 Aalborg, 2015

Graphics x12gu Kowarik, Meraner, Templ (STAT, TU) 17 / 20 Aalborg, 2015

nteractive Plots x12gu Kowarik, Meraner, Templ (STAT, TU) 18 / 20 Aalborg, 2015

nteractive Plots x12gu Kowarik, Meraner, Templ (STAT, TU) 19 / 20 Aalborg, 2015

Details and contact JSS paper Seasonal Adjustment with the R packages x12 and x12gu Contact: Alexander Kowarik alexander.kowarik@statistik.gv.at https://github.com/alexkowa/x12 Kowarik, Meraner, Templ (STAT, TU) 20 / 20 Aalborg, 2015