- formula
an object of class "Formula" "formula": A symbolic description
of the model to be fitted. The details of model specification are given under
'Details'.
- data
an optional data frame, list or environment (or object coercible by
as.data.frame to a data frame) containing the variables in the model. If
not found in data, the variables are taken from environment(formula),
typically the environment from which opsr is called.
- subset
an optional vector specifying a subset of observations to be used
in the fitting process. (See additional details in the 'Details' section of
the model.frame documentation.).
- weights
an optional vector of weights to be used in the fitting process.
Should be NULL or a numeric vector. If non-NULL, then observation-specific
log-likelihood contributions are multiplied by their corresponding weight
before summing.
- na.action
a function which indicates what should happen when the data
contain NAs. The default is set by the na.action setting of options,
and is na.fail if that is unset. The 'factory-fresh' default is na.omit.
Another possible value is NULL, no action. Value na.exclude can be useful.
- start
a numeric vector with the starting values (passed to maxLik::maxLik).
If no starting values are provided, reasonable values are auto-generated via
the Heckman 2-step procedure opsr_2step. The structure of start has to
conform with opsr's expectations. See opsr_check_start for further details.
- fixed
parameters to be treated as constants at their start values. If
present, it is treated as an index vector of start parameters (passed to
maxLik::maxLik).
- method
maximzation method (passed to maxLik::maxLik).
- iterlim
maximum number of iterations (passed to maxLik::maxLik).
- printLevel
larger number prints more working information (passed to maxLik::maxLik).
- nThreads
number of threads to be used. Do not pass higher number than
number of ordinal outcomes. See also opsr_check_omp and opsr_max_threads.
- .get2step
if TRUE, returns starting values as generated by opsr_2step. Will
not proceed with the maximum likelihood estimation.
- .useR
if TRUE usese loglik_R. Go grab a coffe.
- .censorRho
if TRUE, rho starting values are censored to lie in the
interval [-0.85, 0.85].
- .loglik
if TRUE, returns the vector of log-likelihood values given
the parameters passed via start.
- ...
further arguments passed to maxLik::maxLik.