We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Run Linear Regression for parts of data based on distinct values in a column

PoojaPrasadUTD
6 - Meteoroid

Hi,

 

I have following dataset format where I need to predict Price for each city using Linear Regression. How can I create a loop based on distinct values of city and run Linear Regression for each city and save the predictions in the a single table as an output.

 

Input data

CityBedsAreaPrice
ABC23100
ABC34120
ABC1290
DEF23200
DEF34220
DEF12190

 

Any suggestions would be appreciated.

Thanks

1 REPLY 1
AngelosPachis
16 - Nebula

Hi @PoojaPrasadUTD ,

 

I would suggest creating a batch macro for that task, using the "City" field as control parameter.

Labels
Top Solution Authors