Usage
probit(formula, subset, start = NULL, data = sys.frame(sys.parent()),
x=FALSE, y = FALSE, model = FALSE, method="ML", ... )
Arguments
formula
a symbolic description of the model to be fit, in the
form response ~ explanatory variables
. The
response variable should be either logical or numeric with values
only 0-1 or a factor with two levels.
subset
an optional vector specifying a subset of observations to be
used in the fitting process.
start
inital value of parameters.
data
an optional 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 probit
is called.
x, y, model
logicals. If TRUE the corresponding components of
the fit (the
model matrix, the response, the model frame) are returned.
method
the method to be used; for fitting,
currently only method = "ML" (Maximum Likelihood) is supported;
method = "model.frame" returns the model frame (the same as
with model = TRUE, see below).
...
further arguments for maxLik
.