1. Home
  2. ASReml-R 4 Commands
  3. na.method – Missing value action for asreml dataframes

na.method – Missing value action for asreml dataframes

Description

The na.method function deals with missing values in the data argument to asreml. “include” retains NAs in the data, “omit” drops records with NAs and “fail” raises 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 is “include“.
x Action to take if missing values are present in covariates; default is “fail“.
Value

A list with components x and y.

Updated on August 8, 2018

Was this article helpful?

Related Articles