Hi
I will be so thankful to anyone who can help to figure out what is wrong with my code
attached is the code
It suppose to estimate the parameters using NLPQN
if I have one simulated data set, then there is no errors (but results are not good). If I ask for more than one simulation I get error and warnings messages such as
WARNING: Invalid argument resulted in missing value result.
that refers to this statement
do L=1 to n;
sum=sum+( X- 1/alpha*( -log(p)/gamma) **(-1/beta) )**2;
end;
and at the end I get this error message
ERROR: Overflow error in NLPQN.
I don't know exactly what is my mistake? I tried to change the initial values ...it works but then if I increase the sample size n then I get
the same error again
I will highly appreciate any advice
thank you