Adjust for Missing Values
Use missing value information to adjust residuals and predictions.
naresid(omit, x, ...) napredict(omit, x, ...)
These are utility functions used to allow
residuals methods for modelling
functions to compensate for the removal of
NAs in the fitting
process. They are used by the default,
"nls" methods, and by further methods in packages
The default methods do nothing. The default method for the
action is to pad the object with
NAs in the correct positions to
have the same number of rows as the original data frame.
napredict are identical, but
future methods need not be.
naresid is used for residuals, and
napredict for fitted values, predictions and
- These return a similar object to
In the early 2000s, packages
equivalent to that now used for