get.control {COMPoissonReg} | R Documentation |
Construct a control object to pass additional arguments to a number of functions in the package.
Description
Construct a control object to pass additional arguments to a number of functions in the package.
Usage
get.control(
ymax = 1e+06,
optim.method = "L-BFGS-B",
optim.control = list(maxit = 150),
hybrid.tol = 0.01,
truncate.tol = 1e-06
)
Arguments
ymax |
Truncate counts to maximum value of |
optim.method |
Optimization method for maximum likelihood. See the
|
optim.control |
|
hybrid.tol |
Tolerance to decide when to use truncation method versus approximation method to compute quantities based on the normalizing constant. See details. |
truncate.tol |
Tolerance for truncation method. See details. |
Details
A hybrid method is used throughout the package to compute the CMP normalizing
constant and related quantities. When is smaller than
hybrid.tol
, an asymptotic approximation is used; otherwise, infinite
series are truncated to finite summations. More information is given in the
COMPoissonReg
vignette.
The element ymax
protects against very long computations. Users
should beware when increasing this significantly beyond the default, as it
may result in a session which needs to be terminated.
Value
List of controls.