mve.f | R Documentation |
Function to estimate missing values for factorial experiment with a CRD or a RCBD by the least squares method.
mve.f(dfr, y, factors, rep = NULL, maxp = 0.1, tol = 1e-06)
dfr |
The name of the data frame. |
y |
The name of the column for the variable to estimate missing values. |
factors |
The names of the columns that identify the factors. |
rep |
The name of the column that identifies the replications or blocks,
default is |
maxp |
Maximum allowed proportion of missing values to estimate, default is 10%. |
tol |
Tolerance for the convergence of the iterative estimation process. |
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.
Raul Eyzaguirre.
# A data frame with some missing values
tmp <- asc
tmp$dm[c(3, 10, 115)] <- NA
# Estimate the missing values
mve.f(tmp, "dm", c("geno", "treat"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.