Thanks for your response,
The U is from
Singular value decompositions Y=UDV'
SVD=svd(Y)
U=SVD$u
D=diag(SVD$d)
V=SVD$v
Where the dimensions of U is
dim(U)
[1] 164 1
Even if I change the iterations to 1:150 I am having the same error
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
for(i in 1:150){
- 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