Computes confidence intervals for the probability of informed trading by simulation
pin_confint(param = NULL, numbuys = NULL, numsells = NULL,
method = "HAC", lower = rep(0, 5), upper = c(1, 1, rep(Inf, 3)),
n = 10000, seed = NULL, level = 0.95, ncores = 1)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 algorithms for generating initial values, valid choices are: 'Grid', 'HAC' and 'HAC_Ref'
numeric: lower bounds for optimization, must have length of 5
numeric: upper bounds for optimization, must have length of 5
integer: Number of simulation runs, defaults to 10000
interpreted as integer or NULL: defaults to NULL, for more details see set.seed
numeric: Confidence level, defaults to 0.95
integer: Number of cpu cores utilized in computation, defaults to 1
numeric: confidence interval
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).
By default, only one core is utilized in computations (ncores = 1).
Confidence intervals can also be calculated in parallel, however,
this only pays off for large values of n.