I think the problem lies in
Par(0) = LN(sY1/sY0)
a few lines above that sY0 doesnt take the value I want and remains zero thus dividing by zero...
then I get an error in the line
vv = vv + Par(j) * X(i*(nR+1)+j)
saying "input string was not in correct format. I wonder why sY0 doesnt take values because that should be the case with the initial data.
|