Re: [R] Help Coding error

2025-03-29 Thread Behaylu Ayalew
This is great, thank you so much for your help! I found the problem, the data contains 3 and 4 numbers. I solved it. Thank you On Sat, Mar 29, 2025 at 2:21 AM CALUM POLWART wrote: > So either: > > XX contains some non-finite numbers > > Or > > Something produced from it does. > > Non finite mea

Re: [R] Help Coding error

2025-03-29 Thread CALUM POLWART
So either: XX contains some non-finite numbers Or Something produced from it does. Non finite means things like 1÷0. R might show Inf or -Inf. But if there is maths happening in the function it might be passing something to it the is a 0 and so creating a Inf. But if there is a test of is.fini

[R] Help Coding error

2025-03-29 Thread Behaylu Ayalew
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) libra