Skip to content

Commit

Permalink
Style readme
Browse files Browse the repository at this point in the history
  • Loading branch information
robjhyndman committed Jul 23, 2024
1 parent e51f1cb commit af34b5a
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ You can install the **stable** version from
[CRAN](https://cran.r-project.org/package=forecast).

```s
install.packages('forecast', dependencies = TRUE)
install.packages("forecast", dependencies = TRUE)
```

You can install the **development** version from
Expand All @@ -33,48 +33,48 @@ library(forecast)
library(ggplot2)
# ETS forecasts
USAccDeaths %>%
ets() %>%
forecast() %>%
USAccDeaths |>
ets() |>
forecast() |>
autoplot()
# Automatic ARIMA forecasts
WWWusage %>%
auto.arima() %>%
forecast(h=20) %>%
WWWusage |>
auto.arima() |>
forecast(h=20) |>
autoplot()
# ARFIMA forecasts
library(fracdiff)
x <- fracdiff.sim( 100, ma=-.4, d=.3)$series
arfima(x) %>%
forecast(h=30) %>%
arfima(x) |>
forecast(h=30) |>
autoplot()
# Forecasting with STL
USAccDeaths %>%
stlm(modelfunction=ar) %>%
forecast(h=36) %>%
USAccDeaths |>
stlm(modelfunction=ar) |>
forecast(h=36) |>
autoplot()
AirPassengers %>%
stlf(lambda=0) %>%
AirPassengers |>
stlf(lambda=0) |>
autoplot()
USAccDeaths %>%
stl(s.window='periodic') %>%
forecast() %>%
USAccDeaths |>
stl(s.window='periodic') |>
forecast() |>
autoplot()
# TBATS forecasts
USAccDeaths %>%
tbats() %>%
forecast() %>%
USAccDeaths |>
tbats() |>
forecast() |>
autoplot()
taylor %>%
tbats() %>%
forecast() %>%
taylor |>
tbats() |>
forecast() |>
autoplot()
```

Expand Down

0 comments on commit af34b5a

Please sign in to comment.