This function solves univariate linear mixed models by likelihood methods. The optimization methods is based on Efficient Mixed Model Association (Kang et al. 2008).
GBLUP_CV(formula, data, K, CV = TRUE, folds = NULL, weights = NULL)
Argument | Description |
---|---|
formula |
an object of class "formula" (or one that can be coerced to that class): a symbolic description of the model to be fitted. |
data |
an optional data frame containing the variables in the model. |
K |
Covariance matrix for random effects. |
CV |
(logical) if TRUE the Leave-one-out Cross-validation is performed, default TRUE. |
folds |
is a vector with validation sets used to perform k-folds cross-validation. Should be NULL or a numeric vector. If it is NULL, LOOCV will be performed. |
weights |
is an optional vector to allow for heterogeneous error variance: |
A list with genetic and residual variances; a vector with BLUPs for random effects; a vector for BLUEs of fixed effects; the log-likelihood. AIC and BIC statistics. If CV is TRUE, a vector with BLUPs for random effects using LOOCV method.
Hyun Min Kang, Noah A. Zaitlen, Claire M. Wade, Andrew Kirby, David Heckerman, Mark J. Daly and Eleazar Eskin, 2008. Efficient control of population structure in model organism association mapping. Genetics 178:1709-1723. doi:10.1534/genetics.107.080101.
Gianola D, Schon C-C, 2016. Cross-Validation Without Doing Cross-Validation in Genome-Enabled Prediction. G3: Genes|Genomes|Genetics. 6(10):3107-3128. doi:10.1534/g3.116.033381.
## Not to run ##
## GBLUP_CV(Phen ~ Effect, data=Data, K=G)
## End(Not run)
Performs a Leave-One-Out Cross-Validation Without Doing Cross-Validation using Gibbs Sampling results.
cvBGBLUP(n, Y, g, K, Vg, Ve)
Argument | Description |
---|---|
n |
is the number of observations. If length(n) > 1, the length is taken to be the number required. |
Y |
is a phenotypic matrix with n rows and 1 column. |
g |
is vector with the BLUP solution for the genetic values. |
K |
is a relationship matrix with m rows and m columns. |
Vg |
is the posterior mean of the genetic variance. |
Ve |
is the posterior mean of the residual variance. |
## Not to run ##
## cvBGBLUP(n=nSamp, Y=y, g=gHat, K=G, Vg=gVAR, Ve=eVAR)
## End(Not run)
This function solves univariate linear mixed models by likelihood methods. The optimization methods is based on Efficient Mixed Model Association (Kang et al. 2008).
RRBLUP_CV(formula, data, Z, CV = TRUE, folds = NULL, weights = NULL)
Argument | Description |
---|---|
formula |
an object of class "formula" (or one that can be coerced to that class): a symbolic description of the model to be fitted. |
data |
an optional data frame containing the variables in the model. |
Z |
SNP markers matrix with animals in rows and markers in columns. |
CV |
(logical) if TRUE the Leave-one-out Cross-validation is performed, default TRUE. |
folds |
is a vector with validation sets used to perform k-folds cross-validation. Should be NULL or a numeric vector. If it is NULL, LOOCV will be performed. |
weights |
is an optional vector to allow for heterogeneous error variance: |
A list with genetic and residual variances; a vector with BLUPs for random effects; a vector for BLUEs of fixed effects; the log-likelihood. AIC and BIC statistics. If CV is TRUE, a vector with BLUPs for random effects using LOOCV method.
Hyun Min Kang, Noah A. Zaitlen, Claire M. Wade, Andrew Kirby, David Heckerman, Mark J. Daly and Eleazar Eskin, 2008. Efficient control of population structure in model organism association mapping. Genetics 178:1709-1723. doi:10.1534/genetics.107.080101.
Gianola D, Schon C-C, 2016. Cross-Validation Without Doing Cross-Validation in Genome-Enabled Prediction. G3: Genes|Genomes|Genetics. 6(10):3107-3128. doi:10.1534/g3.116.033381.
## Not to run ##
## RRBLUP_CV(Phen ~ Effect, data=Data, Z=M)
## End(Not run)
Performs a Leave-One-Out Cross-Validation Without Doing Cross-Validation using Gibbs Sampling results.
cvBayes(Y, B, X, varE)
Argument | Description |
---|---|
Y |
is a phenotypic matrix with n rows and 1 column. |
B |
is a matrix with the posterior distribution of markers effect. |
X |
is a matrix with markers in columns and animals in rows. |
varE |
is a vector with the posterior distribution of residual variance. |
## Not to run ##
## cvBayes(Y=y, B=Effect, X=X, varE=BA_varE)
## End(Not run)
Solves a univariate mixed model of form
MME(y, X, Z, K)
Argument | Description |
---|---|
y |
a matrix with n rows and 1 column. |
X |
a matrix with n rows and x columns. |
Z |
a matrix with n rows and m columns. |
K |
a matrix with m rows and m columns. |
## Not to run ##
## MME(Y, X, Z, K)
## End(Not run)
Performs a Leave-One-Out Cross-Validation Without Doing Cross-Validation using a relationship matrix.
LOOCV_DG(y, K, lambda, g)
Argument | Description |
---|---|
y |
is a phenotypic matrix with n rows and 1 column. |
K |
is a relationship matrix with m rows and m columns. |
lambda |
is the ratio bwtween residual and genetic variance. |
g |
is the BLUP solution for the genetic values. |
## Not to run ##
## LOOCV_DG(Y, G, lambda)
## End(Not run)
Performs a K-folds Cross-Validation Without Doing Cross-Validation using a relationship matrix.
kCV_DG(Y, K, lambda, folds, g)
Argument | Description |
---|---|
Y |
is a phenotypic matrix with n rows and 1 column. |
K |
is a relationship matrix with m rows and m columns. |
lambda |
is the ratio bwtween residual and genetic variance. |
folds |
is a vector with validation sets used to perform k-folds cross-validation. |
g |
is the BLUP solution for the genetic values. |
## Not to run ##
## kCV_DG(Y, K, lambda, folds)
## End(Not run)
Solves a univariate mixed model of form
RRBLUP(y, X, M)
Argument | Description |
---|---|
y |
a matrix with n rows and 1 column |
X |
a matrix with n rows and x columns |
M |
a matrix with n rows and m columns |
## Not to run ##
## RRBLUP(y, X, M)
## End(Not run)
Performs a Leave-One-Out Cross-Validation Without Doing Cross-Validation using a relationship matrix.
LOOrrDG(Y, X, B, lambda)
Argument | Description |
---|---|
Y |
is a phenotypic matrix with n rows and 1 column. |
X |
is a matrix with markers in columns and animals in rows. |
B |
is matrix with markers effect. |
lambda |
is the ratio bwtween residual and genetic variance. |
## Not to run ##
## LOOrrDG(Y, X, B, lambda)
## End(Not run)