Question
Bug in line(X,Y)
- January 11, 2010
- 1 reply
- 692 views
Hello.
I did a quick search and didn't come across a post that covered this bug in line(X,Y). If the vector Y holds all-zeros then the line function (linear regression) fails. Oddly, the error message varies.
In some cases the message is:
"The calculation resulted in a vector with no elements."
In more cases, the message reads:
"Object reference not set to an instance of an object."
- Guy
I did a quick search and didn't come across a post that covered this bug in line(X,Y). If the vector Y holds all-zeros then the line function (linear regression) fails. Oddly, the error message varies.
In some cases the message is:
"The calculation resulted in a vector with no elements."
In more cases, the message reads:
"Object reference not set to an instance of an object."
- Guy

