a numeric vector or a numeric matrix of one column (representing a phenotype for instance).
x
a data frame or matrix, representing covariates if not missing.
v
a list of variance components (AA, DD, HH, AD, MH, EE,...), where "AA" and "DD" are respectively additive and dominance genetic matrices, "HH", "AD" and "MH" are other genetic matrices that one may be interested in (see
initpar
optional initial parameter values.
nit
number of iterations to call optim for optimization.
method
the optimization method to be used. See optim for details.
control
a list of control parameters to be passed to optim.
hessian
logical. Should a numerically differentiated Hessian matrix be returned?
Value
parestimates of the model parameters.
valuelog-likelihood of the model.
yy used.
xassociated with x used.
vvariance component matrices v used.
...other information.
Details
The optimization function optim is adopted in the above function to estimate the parameters and maximum likelihood. Several optimization methods are available for the optimization algorithm in optim, but we recommend "Nelder-Mead" for the sake of stability. Alternatively, one may choose other options, e.g., "BFGS" to initialize and speed up the estimation procedure and then the procedure will automatically turn to "Nelder-Mead" for final results.
Normality is assumed for the random effects. Input data should be free of missing values.