Input arrays values must be floats.
javvy opened this issue · 4 comments
I experienced a few days of confusion because I happened to be using x-values that were type "integer"
(because they were values for "years").
That produced very bizarre results.
Eventually I realized that "locreg" assumes that the x-values ar type "float".
Multiplying my x-value array by "1.0" fixed things up.
RECOMMEND that documentation specify that the x and y input arrays need to contain type "float" values.
Thank you for your feedback, I had not noticed this. I tried to reproduce the error, and it appeared to me that integer x
and y
actually worked fine, but integer x0
caused the returned values to be cast to integer. Could it be that x0
were also integer in your case? If so I have now fixed the error, and it will be fixed in the next version of localreg.
Yes, you are right, x0
defaults to x
. In that case I believe it is fixed, and I'm closing the issue.