Regression In loop

Hi,

I am trying to find price elasticity of a set of products. For this I have 2 categorical variables. Country and Product ID. Since price elasticity is for a individual product, I need to loop through the group of rows created by combination of Country and Product ID.
How can I run the regression in loop to collect the regression coefficients for every single Product ID.

Thanks
Nikki

Hi there!

For Loop you have Group Loop Start node that should do it. You can put both Country and Product ID in it. For finish you got Loop End node. In between I leave to you :slight_smile:

Good luck!

Br,
Ivan

Thanks Ivan. I did accomplish that along with capturing the variables for every loop using Constant Value node.
Capture

1 Like

Hi Niki,

you are welcome :slight_smile:

Br,
Ivan