Thin wrapper around arima() that fixes d = 0 and q = 0. Matches
the in-formula ar() helper that brms users will be familiar with.
Equivalent to arima(time, by, p = p, d = 0, q = 0).
Value
An enw_arima_term interpretable by construct_arima().
See also
Functions used to help convert formulas into model designs
arima(),
arima_terms(),
arma(),
as_string_formula(),
construct_arima(),
construct_gp(),
construct_re(),
construct_rw(),
enw_formula(),
enw_manual_formula(),
gp(),
gp_terms(),
ma(),
parse_formula(),
re(),
remove_arima_terms(),
remove_gp_terms(),
remove_rw_terms(),
rw(),
rw_terms(),
split_formula_to_terms()
Examples
ar(time)
#> $time
#> [1] "time"
#>
#> $by
#> NULL
#>
#> $p
#> [1] 1
#>
#> $d
#> [1] 0
#>
#> $q
#> [1] 0
#>
#> attr(,"class")
#> [1] "enw_arima_term"
ar(time, location, p = 2)
#> $time
#> [1] "time"
#>
#> $by
#> [1] "location"
#>
#> $p
#> [1] 2
#>
#> $d
#> [1] 0
#>
#> $q
#> [1] 0
#>
#> attr(,"class")
#> [1] "enw_arima_term"
