Here’s a high level flow of the analysis.
• Calculate R, F and M parameters
• Apply k-means clustering algorithm on these parameters to group similar customers.
• Apply classification algorithms such as Logistic Regression and Decision Trees to predict future customer behavior.