Auxiliary function for ib
bias correction.
ibControl(
tol = 1e-05,
maxit = 25,
verbose = FALSE,
seed = 123L,
H = 1L,
constraint = TRUE,
early_stop = FALSE,
cens = FALSE,
right = NULL,
left = NULL,
mis = FALSE,
prop = NULL,
out = FALSE,
eps = NULL,
G = NULL,
func = function(x) rowMeans(x, na.rm = T),
sim = NULL
)
positive convergence tolerance \(\epsilon\).
The ib
procedure converges when
\(||\hat{\theta}^{k+1}-\hat{\theta}^k||_2/p<\epsilon\),
where \(p\) is the dimension of \(\theta\).
integer
representing the maximal number of iterations.
if TRUE
, it prints some output in the console
at each iteration.
integer
to set the seed (see Random
).
integer
representing the number of bootstrap estimates
(see ib
).
if TRUE
(default), constraint for extra_param
is used in the iterative procedure (see 'Details' of ib
).
if TRUE
(default is FALSE
), the iterative
procedure stops as soon as there is no improvment in the minimization of
the objective function (see 'Details' of ib
).
if TRUE
the simulated responses are censored according to
left
and right
values.
double
for right-censoring (only used if cens=TRUE
).
double
for left-censoring (only used if cens=TRUE
).
if TRUE
the simulated responses have missing data at random.
double
between 0 and 1 representing the proportion of
missing data (only used if mis=TRUE
).
if TRUE
the simulated responses are also generated with a
contamination mechanism.
double
between 0 and 1 representing the proportion of
outliers in the data (only used if out=TRUE
).
a function
to generate outliers. It takes only
a sample size as argument.
a function
to reduce the H
bootstrap estimates (rowwise).
By default, the average is computed. The user can supply a function.
One could imagine using other function such as the median or a trimmed mean.
a user-defined function for simulating responses (see 'Details')
a list with components named as the arguments.
sim
allows the user to provide its own function for generating
responses. Currently it is only supported for generalized linear models with
the prototype `fun(object, control, extra_param, ...)` (see ib
).
ib
, the iterative procedure for bias correction.