BookmarkSubscribeRSS Feed
jawon
Fluorite | Level 6
This is more a general regression question than specific to sas procs...

Let's say I'm trying to create a model that predicts how much my customers are likely to spend at my store. But looking at my existing customers, I have a hunch that customers who have bought product X are different than those who have bought product Y.

In other words, if I were to build a model from product X customers, the final variables and coefficients could be very different from the model built from product Y customers.

Do I have to build a separate model for each customer segment and somehow blend the results? Or is there a way to build one model that somehow factors in the differences?
1 REPLY 1
Doc_Duke
Rhodochrosite | Level 12
In the classic regression sense, you can do this with interaction terms in one model.

As a concrete example, say that X=baby diapers and Y=Viagra. So, you'd expect X-people to be mostly younger and female and the Y-people to be mostly older and male. If X and Y are 0/1 coded, a model might look something like

$$spent = age sex x y age*x age*y sex*x sex*y

Doc Muhlbaier
Duke

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1310 views
  • 0 likes
  • 2 in conversation