Evaluates likelihood function either utilizing factorization by Easley et. al (2010) or Lin and Ke (2011).
pin_ll(param = NULL, numbuys = NULL, numsells = NULL,
factorization = "Lin_Ke")
numeric: (named) vector of model parameters
(valid names: 'alpha'
, 'delta'
, 'epsilon_b'
, 'epsilon_s'
, 'mu'
),
length must equal 5
numeric: vector of daily buys
numeric: vector of daily sells
character: switch between EHO ('EHO') and Lin-Ke ('Lin_Ke') factorization
numeric: likelihood function value
If names are not set for param
or one or more of the vector names do not match the valid choices, they are internally set to
'alpha'
, 'delta'
, 'epsilon_b'
, 'epsilon_s'
, 'mu'
(in this order).
Vectors for numbuys
and numsells
need to have same length.
Easley, David et al. (2010) Factoring Information into Returns Journal of Financial and Quantitative Analysis, Volume 45, Issue 2, pp. 293 - 309 10.1017/S0022109010000074
Lin, Hsiou-Wei William and Ke, Wen-Chyan (2011) A computing bias in estimating the probability of informed trading Journal of Financial Markets, Volume 14, Issue 4, pp. 625 - 640 10.1016/j.finmar.2011.03.001