clmm
.
The random effect $\mathbf{a}$ follows some covariance-structure $\mathbf{G}$cGBLUP(y,G,X=NULL, scale_a = 0, df_a = -2, scale_e = 0, df_e = -2,
niter = 10000, burnin = 5000, seed = NULL, verbose=TRUE)
By finding the decomposition: $\mathbf{G = UDU'}$ and premultiplying the model equation by $\mathbf{U'}$ we get: $$\mathbf{U'y = U'Xb + U'a + U'e}$$ with: $$Var(\mathbf{U'y}) = \mathbf{U'G'U} \sigma^2_a + \mathbf{U'U} \sigma^2_e$$ $$\mathbf{U'UDU'U}\sigma^2_a + \mathbf{I}\sigma^2_e$$ $$\mathbf{D}\sigma^2_a + \mathbf{I}\sigma^2_e$$
After diagonalization of the variance-covariance structure the transformed model is being fitted by passing $\mathbf{D}^{1/2}$
as the design matrix for the random effects to clmm
.
The results are subsequently backtransformed and returned by the function.
clmm
, cgrm
, cGWAS.emmax
# generate random data
rand_data(500,5000)
# compute a genomic relationship-matrix
G <- cgrm(M,lambda=0.01)
# run model
mod <- cGBLUP(y,G)
Run the code above in your browser using DataLab