mve.rcbd: Estimation of missing values for a RCBD

View source: R/mve_rcbd.R

mve.rcbdR Documentation

Estimation of missing values for a RCBD

Description

Function to estimate missing values for a Randomized Complete Block Design (RCBD) by the least squares method.

Usage

mve.rcbd(dfr, y, geno, rep, maxp = 0.1, tol = 1e-06)

Arguments

dfr

The name of the data frame.

y

The name of the column for the variable to estimate missing values.

geno

The name of the column that identifies the genotypes.

rep

The name of the column that identifies the replications.

maxp

Maximum allowed proportion of missing values to estimate, defaults to 10%.

tol

Tolerance for the convergence of the iterative estimation process.

Value

It returns a data frame with the experimental layout and columns y and y.est with the original data and the original data plus the estimated values.

Author(s)

Raul Eyzaguirre.

Examples

tmp <- met8x12[met8x12$env == "TM80N", ]
mve.rcbd(tmp, "y", "geno", "rep")

reyzaguirre/st4gi documentation built on March 29, 2025, 10:38 p.m.