View source: R/svc_MakeADFun.R
svc_MakeADFun | R Documentation |
TMB::MakeADFun()
object for the exponential Ornstein-Uhlenbeck stochastic volatility model.Construct a TMB::MakeADFun()
object for the exponential Ornstein-Uhlenbeck stochastic volatility model.
svc_MakeADFun(
Xt,
log_VPt,
dt,
log_Vt,
alpha,
log_gamma,
mu,
log_sigma,
logit_rho,
logit_tau,
logit_omega,
par_list,
iasset = "all",
...
)
Xt |
Matrix of |
log_VPt |
Vector of |
dt |
Interobservation time. |
log_Vt |
Optional vector of |
alpha |
Optional vector of |
log_gamma |
Optional vector of |
mu |
Optional vector of |
log_sigma |
Optional vector of |
logit_rho |
Optional vector of |
logit_tau |
Optional vector of |
logit_omega |
Optional vector of |
par_list |
Optional list with named elements consisting of a subset of |
iasset |
Index of asset for which parameters are to be treated as non-fixed. Either the character string "all" indicating that no parameters are fixed, or an integer in |
... |
Additional arguments to |
The common-factor multivariate stochastic volatility (SVC) model for multiple assets is given by the stochastic differential equation (SDE) ...
svc_MakeADFun
implements the Euler approximation to this SDE...
The optional latent variable and parameter inputs log_Vt
, alpha
, ..., logit_rho
can be set to initialize optimization routines. The default values are for each parameter vector to consist of the zero vector of the appropriate length, and the columns of log_Vt
to be the log of windowed standard deviation estimates for the corresponding asset as calculated by sv_init()
.
svc_MakeADFun
is a wrapper to TMB::MakeADFun()
. This function may be called on the underlying C++ template provided by svcommon via
TMB::MakeADFun(data = list(model = "sv_common", ...), parameters = list(...), DLL = "svcommon_TMBExports", ...)
The result of a call to TMB::MakeADFun()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.