We're Moving!

The Vertica Forum is moving to a new OpenText Analytics Database (Vertica) Community.

Join us there to post discussion topics, learn about

product releases, share tips, access the blog, and much more.

Create My New Community Account Now


Linear Regression on queries — Vertica Forum

Linear Regression on queries

Hi,

is there a simple way to make a linear regression on SELECT - statements, like, e.g.

WITH train AS (SELECT response, predictor FROM ....)
SELECT LINEAR_REG('linear_reg', 'train', 'response', 'predictor ' USING PARAMETERS optimizer='BFGS', fit_intercept=true);

This way I could make many regressions without having to create extra Views or Tables for each statement.

Thanks!

Tagged:

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file