This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Hi,
Here's a macro I built for one of our business users.
It takes a series of X and Y values as input, performs a least squares linear regression and returns the slope and intercept.
You also have the option of forcing the Intercept to 0, in which case, it will calculate and return the slope.
Hope it can be useful to others.
Enjoy!
I'm sure this will be useful!
Make sure you post it on the Alteryx Gallery (https://gallery.alteryx.com/#!), it's a central location for all things public macros/apps.
Ben
great simple solution 🙂
though one may need a multivariate solution so do you have any idea why
we can't force intercept to 0 in linear regression tool?