Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

naExcludeMvr

Adjust for Missing Values


Description

Use missing value information to adjust residuals and predictions. This is the ‘mvr equivalent’ of the naresid.exclude and napredict.exclude functions.

Usage

naExcludeMvr(omit, x, ...)

Arguments

omit

an object produced by an na.action function, typically the "na.action" attribute of the result of na.omit or na.exclude.

x

a three-dimensional array to be adjusted based upon the missing value information in omit.

...

further arguments. Currently not used.

Details

This is a utility function used to allow predict.mvr and residuals.mvr to compensate for the removal of NAs in the fitting process.

It is called only when the na.action is na.exclude, and pads x with NAs in the correct positions to have the same number of rows as the original data frame.

Value

x, padded with NAs along the first dimension (‘rows’).

Author(s)

Bjørn-Helge Mevik and Ron Wehrens

See Also


pls

Partial Least Squares and Principal Component Regression

v2.7-3
GPL-2
Authors
Bjørn-Helge Mevik [aut, cre], Ron Wehrens [aut], Kristian Hovde Liland [aut], Paul Hiemstra [ctb]
Initial release
2020-08-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.