Please start any new threads on our new
site at http://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.

Our new SQL Server Forums are live!
Come on over! We've restricted the ability to create new threads on these forums.

Very sorry to ask you, but do you have any time lines for finishing this SQLCLR. I am looking for a project deliverable by end of this week. Can u give me a headsup on what logic you would write within SQLCLR, and the .NET classes from the library, so i could do some brainstorming on that.

I realize I'm a little late to the party here but found your code when I was looking for something pre-built instead of coding my own.

Really enjoy that you had done this already, saved me some work! I think there is a small issue with your coefficient of determination (r2) calculation though. I got a little bogged down by messy math when actually trying to work it out from squaring the standard equation for r so I just took the lazy way out and modified r2 to just square the calculation of r. It now calculates as I would expect. I'm sure you can go through the math to modify the original version to make it work, I just couldn't find it. Here is my equation: