L-BFGS-B needs finite values of 'fn'

Hi community,
I am trying to GE analysis and my script is as below
traits$GxE <- paste(traits$YEAR, traits$ID, sep = "_")
Kge <- tcrossprod(X) * tcrossprod(Z %
% Gmatrix, Z)
traits$GxE <- factor(traits$GxE)
rownames(Kge) <- colnames(Kge) <- traits$GxE
emmremlout <- emmremlMultiKernel(
y = matrix(y),
X = X,
Zlist = list(Z, diag(length(y))),
Klist = list(Gmatrix, Kge)

i am encountering an warning message followed by error as below
Warning in optimize(minimfunc, lower = 0, upper = 10000, tol = 1e-09) :
NA/Inf replaced by maximum positive value
Error in optim(par = rep(1/lz, lz), fn = minimfunctionouter, method = "L-BFGS-B", :
L-BFGS-B needs finite values of 'fn'
i tried to cheeck

[1] 1.797693e+308

Please help me out whith the error thanks in advance

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.