Hi community,
I am using package BGLR and i am encountering the error as mentioned in the subject-
My scripts and error is as below
Please help me out with the error. Thanks in advance
B=matrix(nrow=ncol(X),ncol=ncol(Y))
dim(X)
[1] 164 10458
dim(Y)
[1] 164 1
ncol(X)
[1] 10458
ncol(Y)
[1] 1
ETA=list(list(X=X,model='BayesB'))
for(i in 1:ncol(X)){
- fm=BGLR(y=U[,i],ETA=ETA,verbose=F) #use more iterations!
- B[,i]=fm$ETA[[1]]$b
- }
Error in U[, i] : subscript out of bounds