View source: R/score_vector_barma.R
| score_vector_barma | R Documentation |
Computes the score vector (gradient of the log-likelihood)
for the Beta Autoregressive Moving Average (BARMA) model at a given
parameter vector. Used internally by barma during
optimization via the BFGS algorithm.
score_vector_barma(
y,
ar,
ma,
alpha,
varphi,
theta,
phi,
link,
xreg = NULL,
beta = NULL
)
y |
A time series object ( |
ar |
A numeric vector specifying the autoregressive (AR) lags.
Use |
ma |
A numeric vector specifying the moving average (MA) lags.
Use |
alpha |
The intercept parameter. |
varphi |
A numeric vector of AR parameters.
Use |
theta |
A numeric vector of MA parameters.
Use |
phi |
The precision parameter (must be positive). |
link |
A character string specifying the link function.
One of |
xreg |
An optional matrix of external regressors. |
beta |
An optional numeric vector of regression coefficients
corresponding to |
A numeric vector of the same length as the parameter vector, giving the partial derivatives of the log-likelihood with respect to each parameter.
barma, loglik_barma,
fim_barma
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.