run_sa {dateutils}R Documentation

Seasonally adjust data using seas()

Description

Seasonaly adjust monthly or quarterly data using X-13 SEATS via seas()

Usage

run_sa(x, dates, x11 = FALSE, transfunc = c("none", "auto", "log"))

Arguments

x

data

dates

dates corresponding to data 'x'

x11

T/F, use x11 as opposed to X-13 SEATS

transfunc

Data transformation, one of 'none' for no transformation, 'auto' for automatic detection, or 'log' for log transformation

Value

A list with 'adj_fact' containing seasonal factors and 'sa_final' containing seasonally adjusted data.

Examples

x <- fred[series_name == "gdp constant prices", value]
dates <- fred[series_name == "gdp constant prices", ref_date ]
run_sa(x, dates, transfunc = "log")

[Package dateutils version 0.1.5 Index]