BookmarkSubscribeRSS Feed
Question
Fluorite | Level 6

Hi All,

Does anyone know how to create a RFM Segmentation in Base SAS??

Many Thanks

Alice

3 REPLIES 3
UrvishShah
Fluorite | Level 6

Hi,

RFM Segmentation is the subject of Rules Base Segmentation by taking in to account -

  •         Recency (When was the Households Last Shopped)
  •         Frequency (How Often Households shopped)
  •         Monetary (Value of Households for Business in terms of Gross Profit Margin)

If it is like above then you can process with RFM Segmentation by using your transaction dataset as follow:

  •                Create the Visit Dimension:  Calculate Av. Visit Per Week for each households
  •                Create the Spend Dimension: Calculate Av. Spend Per Week for each households

             

Now based on the above two KPIs, create RFM score by combining both the KPIs like -

                      RFM_Score = av.spend || av.visit;

Once you have RFM_Score variable ready, do Proc Rank and you will have rank based on Spend and Visit Dimension...

Finally based on assigned rank (by using Proc Rank), create some rules as follow:

  •                        Maximum Rank (Say 5) are High Value Households
  •                        Medium Rank (Say 3 to 5) are Medium Value Households
  •                        Low Rank (Say 1 to 3) are Low Value Households.

The above procedure of creating RFM Segmentation does not include Margin Dimension as you can eassily group the households based on Frequency and Recency...You can simply calculate Margin KPI and pool more insight from that...

Hope it will be useful to your project...If you can post some sample transaction data, we can discuss more on RFM Segmentation...the above discussion is the starting in creating RFM Segmeatation...

You need to fix period through which you can refresh your RFM Model like every 4 week, 8 week, 13 weeks, etc...

-Urvish

Ming_LongLam
SAS Employee

If you have access to Enterprise Guide 6.1, then you can perform RFM analysis by selecting Tasks > Data Mining > Recency, Frequency, and Monetary Analysis ...  The RFM analysis is a feature in SAS BASE 9.4 and above.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 5503 views
  • 3 likes
  • 3 in conversation