How are you dear Helper? I am from Africa, Ethiopia , I have faced this type of problem
Error in optim(seq(-3, 3, length.out = k), wle.fit, method = "BFGS", control = list(maxit = max.it)) : initial value in 'vmmin' is not finite when I want to run RM.w > wt = beha$wt> rr = RM.w(XX, wt) library(psychomix)> rr.country1 = RM.w(XX, wt1) Error in optim(seq(-3, 3, length.out = k), wle.fit, method = "BFGS", control = list(maxit = max.it)) : initial value in 'vmmin' is not finite when I want to run RM.w Thank you in advance ! -- Behaylu Ayalew +251918768614 Ethiopia. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.