controlNB {WALS} | R Documentation |
Control function for initial NB fit
Description
Defines controllable parameters of initial NB fit in walsNB
.
Usage
controlNB(
start = list(mu = NULL, logTheta = NULL),
method = "BFGS",
controlOptim = list(maxit = 100),
initThetaMASS = FALSE,
initMASS = TRUE,
restricted = FALSE,
eps = .Machine$double.eps^0.25,
epsilonMASS = 1e-08
)
Arguments
start |
Optional starting values for |
method |
Optimization method used in |
controlOptim |
List with parameters controlling optimization process of
|
initThetaMASS |
If TRUE, then initial |
initMASS |
If |
restricted |
If |
eps |
Controls argument |
epsilonMASS |
Sets epsilon in control argument of |
Value
Returns a list containing the parameters specified in the arguments
to be used in walsNB
(and walsNBfitIterate
).
See Also
Examples
data("NMES1988", package = "AER")
walsNB(visits ~ health + chronic + age + gender | I((age^2)/10) +
married + region, data = NMES1988, prior = weibull(),
controlInitNB = controlNB(initMASS = FALSE, restricted = TRUE))