Respects na.action: when the model was fit with na.exclude,
NAs are reinserted at the omitted row positions so the result
aligns with the original data frame (matching base R's fitted.lm).
Usage
# S3 method for class 'ivreg2'
fitted(object, ...)
Arguments
- object
An object of class "ivreg2".
- ...
Additional arguments (ignored).
Value
Numeric vector of fitted values.
See also
ivreg2()
Other ivreg2 methods:
coef.ivreg2(),
confint.ivreg2(),
diagnostics(),
first_stage(),
formula.ivreg2(),
ivreg2(),
model.matrix.ivreg2(),
nobs.ivreg2(),
predict.ivreg2(),
print.ivreg2(),
print.summary.ivreg2(),
residuals.ivreg2(),
summary.ivreg2(),
terms.ivreg2(),
update.ivreg2(),
vcov.ivreg2()