Thank you so much for your help you were right about beta, beta shouldn't be small, I was trying to play with initial values based on your recommendations before I reply Now, I don't get any errors or warnings but I found that there is no optimizations,for instant whether I take the size of the data (n) 10 or 50, whether the number of simulations (k) =10 or 1000 results are the same don't change at all like if they were fixed no matter how many loops I execute or how big my data are I also changed the true values of the parameter, the initial values the constrains...but nothing seems to matter, I wasn't sure exactly how to change the objective function. I wilcome any suggestions or advices thank you for your help

... View more