Description Usage Arguments Details Value
Computes confidence intervals for the probability of informed trading by simulation
1 2 3 |
param |
numeric: (named) vector of model parameters
(valid names: |
numbuys |
numeric: vector of daily buys |
numsells |
numeric: vector of daily sells |
method |
character Switch between algorithms for generating initial values, valid choices are: 'Grid', 'HAC' and 'HAC_Ref' |
lower |
numeric: lower bounds for optimization, must have length of 5 |
upper |
numeric: upper bounds for optimization, must have length of 5 |
n |
integer: Number of simulation runs, defaults to 10000 |
seed |
interpreted as integer or |
level |
numeric: Confidence level, defaults to 0.95 |
ncores |
integer: Number of cpu cores utilized in computation, defaults to 1 |
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
.
numeric: confidence interval
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.