na.method {asreml}R Documentation

Missing value action for asreml data frames

Description

Function to deal with missing values in the data argument to asreml for the response and/or covariates. The options are: "include" to retain NAs in the data, "omit" to drop records with NAs, and "fail" to raise an exception if NAs are present.

Usage

na.method(y = c("include", "omit", "fail"), x = c("fail", "include", "omit"))

Arguments

y

Action to take if there are missing values in the response (default = "include").

x

Action to take if missing values are present in covariates (default = "fail").

Value

A list with components x and y.


[Package asreml version 4.2.0.480 Index]