Description Usage Arguments Value Examples
View source: R/VAR-2-estimation.R
Create the log-likelihood function of a VAR(p) for a particular data set.
1 | log_lik_init(Y, p)
|
Y |
A |
p |
An integer scalar. The lag length of the VAR(p) system. |
A function is returned. It takes as input a named vector args
. This
vector consists of the parameters of the VAR(p) model in vectorised form.
Note that names mu, a, s
are a requirement. It will return the value of
the log-likelihood at the specified parameter vector. See the example for
details.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.