View source: R/met_kernel_model.R
kernel_model | R Documentation |
Runs Bayesian Linear-Mixed Models for Multiple Environments using kernels from get_kernel function
kernel_model(
y,
data = NULL,
random = NULL,
fixed = NULL,
env,
gid,
verbose = FALSE,
iterations = 1000,
burnin = 200,
thining = 10,
tol = 1e-20,
R2 = 0.5,
digits = 4
)
y |
numeric. denotes the name of the column respectively to phenotype values |
data |
data.frame. Should contain the following colunms: environemnt, genotype, phenotype. |
random |
list A two-level list Specify the regression kernels (co-variance matrix). The former is the |
fixed |
matrix Design matrix ( |
env |
character. denotes the name of the column respectively to environments |
gid |
character. denotes the name of the column respectively to the genotype identification (names) |
verbose |
Should iteration history be printed on console? If TRUE or 1 then it is printed,
otherwise, if another number $n$ is choosen the history is printed every $n$ times. The default is |
iterations |
numeric Number of iterations (1000 by default) |
burnin |
numeric, number of iterations to be discarded as burn-in (200 by default). |
thining |
numeric, number of thining used in Markov Chains (10 by default) |
tol |
a numeric tolerance level. Eigenvalues lower than |
R2 |
the proportion of variance expected to be explained by the regression. |
digits |
numeric. Digits for round variance components. |
TODO
A list contaning predicted phenotypes (yHat), posterior means of residual (VarE) and genetic/enviromic variance component for each term in the linear model with the respective confidence intervals (VarComp). Also the values along with the chains are released (BGGE).
Germano Costa Neto (Adapted from Granato et al. 2018, BGGE package)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.