Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: BGLR
Version: 1.1.3
Version: 1.1.4
Title: Bayesian Generalized Linear Regression
Authors@R: c(person(given = "Gustavo",
family = "de los Campos",
Expand Down
2 changes: 1 addition & 1 deletion R/BGLR.R
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ setLT.RKHS=function(LT,y,n,j,weights,saveAt,R2,nLT,rmExistingFiles,verbose)
tmp= LT$d > LT$tolD
LT$levelsU = sum(tmp)
LT$d = LT$d[tmp]
LT$V = LT$V[, tmp]
LT$V = LT$V[, tmp, drop=FALSE]

#Default degrees of freedom and scale parameter associated with the variance component for marker effect
if (is.null(LT$df0))
Expand Down
4 changes: 2 additions & 2 deletions R/Multitrait.R
Original file line number Diff line number Diff line change
Expand Up @@ -1284,8 +1284,8 @@ Multitrait<-function(y,

n<-nrow(y)

#Compute sample variance covariance matrix
Sy<-cov(y,use="pairwise.complete.obs")
#Compute sample variance covariance matrix using flashier (removing rows that have all NAs)
Sy <- mr.mash.alpha:::compute_cov_flash(y[rowSums(is.na(y)) != ncol(y), ])
Sy[is.na(Sy)]=0

#Deep copy of y, DO NOT REPLACE with y.back<-y, it does not work, both objects
Expand Down