ar_lik: Full likelihood of an autoregressive time series model with i.i.d. normal innovations
Description
Full likelihood of an autoregressive time series model with i.i.d. normal innovations
Usage
ar_lik(x, ar, mean = 0, sd = 1, log = F)
Arguments
sd
the innovation standard deviation
log
logical; if TRUE, probabilities p are given as log(p)
Value
numeric value for the likelihood or log-likelihood