Skip to content

Commit

Permalink
version 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe907 authored and gaborcsardi committed Apr 3, 2012
1 parent 59d3603 commit 9dfb1cd
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
@@ -1,6 +1,6 @@
Package: rrBLUP
Title: Ridge regression and other kernels for genomic selection
Version: 3.5
Version: 3.6
Author: Jeffrey Endelman
Maintainer: Jeffrey Endelman <j.endelman@gmail.com>
Description: One application is to estimate marker effects by ridge
Expand All @@ -11,6 +11,6 @@ Description: One application is to estimate marker effects by ridge
Suggests: multicore
License: GPL-3
LazyLoad: yes
Packaged: 2012-02-10 20:05:57 UTC; jeffendelman
Packaged: 2012-04-03 15:31:52 UTC; jeffendelman
Repository: CRAN
Date/Publication: 2012-02-14 07:20:59
Date/Publication: 2012-04-03 21:02:09
6 changes: 3 additions & 3 deletions MD5
@@ -1,10 +1,10 @@
06639f9b86d7b7d138f356c360e8ed3a *DESCRIPTION
909f5f0706ea232931f64ee54eccdd1f *DESCRIPTION
9983baa53027ec7ecc5c44dc94318515 *NAMESPACE
c5119304691b321449950ff08d841a98 *NEWS
76fb9f9fdc5f599f1e738375331e9fc1 *NEWS
3426a5afa2b38e987e53b354c267f488 *R/A.mat.R
48dcf02533fd05c528f6c6ea2cd022fb *R/GWA.R
f9b894abb6a3158ebfabe61486dccd94 *R/kinship.BLUP.R
b02c08fda6a873bb6a221650e7547a96 *R/mixed.solve.R
0d21c26c501e27b2d61363e369edb57c *R/mixed.solve.R
b74e4e9e2c643e550a83c5ee4eb7e905 *inst/CITATION
fbaf1e01452ed907bdb412ff35f3b067 *man/A.mat.Rd
89ab7c69f6c5dbfca37b5220dd14525b *man/GWA.Rd
Expand Down
4 changes: 4 additions & 0 deletions NEWS
@@ -1,3 +1,7 @@
Changes in 3.6:

* Improved error handling in mixed.solve.

Changes in 3.5:

* Labels now transfer from input to output with mixed.solve.
Expand Down
13 changes: 10 additions & 3 deletions R/mixed.solve.R
Expand Up @@ -75,9 +75,15 @@ svd.SZBt <- svd(SZBt)
QR <- qr(cbind(X,svd.SZBt$u))
Q <- qr.Q(QR,complete=TRUE)[,(p+1):n]
R <- qr.R(QR)[p+1:m,p+1:m]
theta <- c(forwardsolve(t(R^2),svd.SZBt$d^2),rep(0,n-p-m))
ans <- try(solve(t(R^2), svd.SZBt$d^2),silent=TRUE)
if (class(ans)=="try-error") {
spectral.method <- "eigen"
} else {
# spectral.method is "eigen"
theta <- c(ans,rep(0, n - p - m))
}
}

if (spectral.method=="eigen") {
offset <- sqrt(n)
if (is.null(K)) {
Hb <- tcrossprod(Z,Z) + offset*diag(n)
Expand All @@ -92,7 +98,8 @@ SHbS <- S %*% Hb %*% S
SHbS.system <- eigen(SHbS, symmetric = TRUE)
theta <- SHbS.system$values[1:(n - p)] - offset
Q <- SHbS.system$vectors[, 1:(n - p)]
} #if (n > m)
}

omega <- crossprod(Q, y)
omega.sq <- omega^2
if (method == "ML") {
Expand Down

0 comments on commit 9dfb1cd

Please sign in to comment.