Description Usage Arguments Value References See Also
Calling compute_ekop_orig_lik()
computes the likelihood from the original
likelihood function of the model of Easley et al. (1996). This likelihood
function can become unstable in settings with high trading volumes. For this
case the bayespin-package provides a modified version of the likelihood
function, compute_ekop_lik()
, first proposed in the paper by Easley et al.
(2002) that is often more stable during optimizaton.
Optimization is performed over the logit transformation of the ratios alpha
and delta
and therefore these parameter logits get transformed in the
likelihood function via the logistic transformation exp()/(1+exp())
.
1 | compute_ekop_orig_lik(data, par, T, methodLik = c("precise", "approx"))
|
data |
A |
par |
A vector specifying the parameter values at which the function
should be evaluated. The parameter order is |
T |
A double indicating the length of a trading day in minutes. |
methodLik |
A character specifying, if undefined function values in
optimization should be approximated by large defined values ( |
A double holding the likelihood value of the data and parameter values passed in.
Easley, D., Kiefer, N., O’Hara, M., Paperman, J., 1996. Liquidity, information, and infrequently traded stocks. Journal of Finance 51, 1405–1436.
Easley, David, Hvidkjaer, Soeren, and O’Hara, Maureen (2002). “Is Information Risk a Determinant of Asset Returns?” In: The Journal of Finance 57.5, pp. 2185–2221. DOI: 10.1111/1540-6261.00493.
estimate_mlekop()
for the calling function
compute_ekop_lik()
for a more stable form of the likelihood function
proposed by Easley et al. (2002)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.