residuals.probit {sampleSelection} | R Documentation |
Residuals of probit models
Description
Calculate residuals of probit
models.
Usage
## S3 method for class 'probit'
residuals( object, type = "deviance", ... )
Arguments
object |
an object of class |
type |
the type of residuals which should be returned. The alternatives are: "deviance" (default), "pearson", and "response" (see details). |
... |
further arguments (currently ignored). |
Details
The residuals are calculated with following formulas:
Response residuals:
Pearson residuals:
Deviance residuals:
if
,
if
Here, is the
th residual,
is the
th response,
is the estimated probability
that
is one,
is the cumulative distribution function of the standard normal
distribution,
is the vector of regressors of the
th observation, and
is the vector of estimated coefficients.
More details are available in Davison & Snell (1991).
Value
A numeric vector of the residuals.
Author(s)
Arne Henningsen
References
Davison, A. C. and Snell, E. J. (1991) Residuals and diagnostics. In: Statistical Theory and Modelling. In Honour of Sir David Cox, edited by Hinkley, D. V., Reid, N. and Snell, E. J., Chapman & Hall, London.
See Also
probit
, residuals
,
residuals.glm
, and probit-methods
.