knitr::opts_chunk$set(
  fig.align = "center",
  fig.pos = "!htbp"
)

lattice::lattice.options(default.theme = list(
  fontsize = list(text = 10, points = 8)  
))

options(digits = 2)

# Source some scripts
source(file.path("R", "lattice_wrappers.R"))

Preface {-}

This book contains solutions to the problems in the book Time Series Analysis: with Applications in R, second edition, by Cryer and Chan. It is provided as a github repository so that anybody may contribute to its development.

Dependencies {-}

You will need these packages to reproduce the examples in this book:

install.packages(c(
  "latticeExtra",
  "lattice",
  "TSA",
  "pander",
  "gridExtra",
  "devtools",
  "zoo",
  "xts"
))
devtools::install_github("jolars/latticework")
# Load the packages
library(devtools)
library(lattice)
library(latticeExtra)
library(gridExtra)
library(TSA)
library(pander)
library(zoo)
library(xts)
library(latticework)

In order for some of the content in this book to be reproducible, the random seed is set at 1234.

set.seed(1234)


jolars/TSAsolutions documentation built on Oct. 20, 2022, 3:49 a.m.