Description Usage Arguments Details Value Author(s) References Examples

Univariate model to find breeding values through regression with optional resampling techniques (SBMC) and polygenic term (Kernel).

1 2 |

`y` |
Numeric vector of observations ( |

`X` |
Numeric matrix containing the genotypic data. A matrix with |

`it` |
Integer. Number of iterations or samples to be generated. |

`bi` |
Integer. Burn-in, the number of iterations or samples to be discarted. |

`th` |
Integer. Thinning parameter, used to save memory by storing only one every 'th' samples. |

`bag` |
If different than one, it indicates the proportion of data to be subsampled in each Markov chain. For datasets with moderate number of observations, values of bag from 0.30 to 0.60 may speed up computation without losses in predicion properties. This argument enable users to enhance MCMC through Subsampling bootstrap Markov chain (SBMC). |

`rp` |
Logical. Use replacement for bootstrap samples when bag is different than one. |

`iv` |
Logical. Assign markers independent variance, a T prior from a mixture of normals. If true, turns the default model BLUP into BayesA. |

`de` |
Logical. Assign markers independent variance through double-exponential prior. If true, turns the default model BLUP into Bayesian LASSO. This argument overides iv. |

`pi` |
Value between 0 and 1. If greater than zero it activates variable selection, where markers have expected probability pi of having null effect. |

`df` |
Prior degrees of freedom of variance components. |

`R2` |
Expected R2, used to calculate the prior shape. |

`eigK` |
Output of function 'eigen'. Spectral decomposition of the kernel used to compute the polygenic term. |

`VarK` |
Numeric between 0 and 1. For reduction of dimensionality. Indicates the proportion of variance explained by Eigenpairs used to fit the polygenic term. |

`verb` |
Logical. If verbose is TRUE, function displays MCMC progress bar. |

The model for the whole-genome regression is as follows:

*y = mu + Xb + u + e*

where *y* is the response variable, *mu* is the intercept, *X* is the genotypic matrix, *b* is the regression coefficient or effect of an allele substitution, with *d* probability of being included into the model, *u* is the polygenic term if a kernel is used, and *e* is the residual term.

Users can obtain four WGR methods out of this function: BRR (pi=0,iv=F), BayesA (pi=0,iv=T), BayesB (pi=0.95,iv=T), BayesC (pi=0.95,iv=F) and Bayesian LASSO or BayesL (pi=0,de=T). Theoretical basis of each model is described by de los Campos et al. (2013).

Gibbs sampler that updates regression coefficients is adapted from GSRU algorithm (Legarra and Misztal 2008). The variable selection works through the unconditional prior algorithm proposed by Kuo and Mallick (1998). Prior shape estimates are computed as Sb = R2*df*var(y)/MSx and Se = (1-R2)*df*var(y). The polygenic term is solved by Bayesian algorithm of reproducing kernel Hilbert Spaces proposed by de los Campos et al. (2010).

The function wgr returns a list with expected value from the marker effect (*b*), probability of marker being in the model (*d*), regression coefficient (*g*), variance of each marker (*Vb*), the intercept (*mu*), the polygene (*u*) and polygenic variance (*Vk*), residual variance (*Ve*) and the fitted value (*hat*).

Alencar Xavier

de los Campos, G., Hickey, J. M., Pong-Wong, R., Daetwyler, H. D., and Calus, M. P. (2013). Whole-genome regression and prediction methods applied to plant and animal breeding. Genetics, 193(2), 327-345.

de los Campos, G., Gianola, D., Rosa, G. J., Weigel, K. A., & Crossa, J. (2010). Semi-parametric genomic-enabled prediction of genetic values using reproducing kernel Hilbert spaces methods. Genetics Research, 92(04), 295-308.

Kuo, L., & Mallick, B. (1998). Variable selection for regression models. Sankhya: The Indian Journal of Statistics, Series B, 65-81.

Legarra, A., & Misztal, I. (2008). Technical note: Computing strategies in genome-wide selection. Journal of dairy science, 91(1), 360-366.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ```
## Not run:
# Load data
data(tpod)
# BLUP
BRR = wgr(y,gen,iv=FALSE,pi=0)
cor(y,BRR$hat)
# BayesA
BayesA = wgr(y,gen,iv=TRUE,pi=0)
cor(y,BayesA$hat)
# BayesB
BayesB = wgr(y,gen,iv=TRUE,pi=.95)
cor(y,BayesB$hat)
# BayesC
BayesC = wgr(y,gen,iv=FALSE,pi=.95)
cor(y,BayesC$hat)
# BayesCpi
BayesCpi = BCpi(y,gen)
cor(y,BayesCpi$hat)
# BayesL
BayesL = wgr(y,gen,de=TRUE)
cor(y,BayesL$hat)
## End(Not run)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.