Practicing Statistics Interview Questions in R
Zuzanna Chmielewska
Actuary
Application of time series:


Time series analysis:



ts <- xts(x = values, order.by = dates)
plot(ts)

dates <- seq(from = as.Date("2010-01-01"),
to = as.Date("2010-12-31"))
dates <- seq(from = as.Date("2010-01-01"),
to = as.Date("2010-12-31"),
by = "1 month")
dates <- seq(from = as.Date("2010-01-01"),
to = as.Date("2010-12-31"),
by = "1 month")
ts[dates]







xts object in RPracticing Statistics Interview Questions in R