Description Usage Arguments Details Value References See Also
Calling compute_comp_lik()
computes the likelihood of the compressed EKOP
model. The compressed EKOP model has been first proposed by Jackson (2007)
and uses only the number of trades per trading day instead of the number of
buyer- and seller-initiated trades per day.
1 | compute_comp_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 ( |
In case of large trading volumes the function computation suffers sometimes
from number overflow. In this case the parameter methodLik
offers an
approximation method in which Inf
or NaN
values are replaced by the
value 1e+6
to avoid number overflow. In experiments this approximation has
shown very good performance and we suggest the user to consider this
approximation when function calculation fails to number overflow.
A double holding the likelihood value of the data and parameter values passed in.
Jackson, D., 2007. Infering trader behavior from transaction data: A trade count model. Journal of Computational and Graphical Statistics 12, 55-79.
estimate_compml()
for the calling function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.