Toni Gril
22. 04. 2015
The application is based on proprietary survey data of 1.900 beer drinkers in Slovenia. First, the segmentation was performed on the reported beer purchase and attitudinal data.
In order to classify respondents in future shorter surveys and for recruiting focus group participants, Random Forest model was trained and validated on data that included a subset of reported beer purchase data and some demographics:
The application can be used to aid recruiting focus group participants. The application gives the membership probability for each of the segments. In the application you provide some basic information about new respondent:
The application gets inputs from the user in the UI and then run server code similar to the code below:
pred.rf.prob <- predict(model.caret, case, type="prob")
The application reads the Random Forest model and predicts to what segment “new” respondent falls based on user input. The application gives the membership probability for each of the segments like in this example:
print(pred.rf.prob)
Segment A Segment B Segment C Segment D Segment E
2 0.004 0.92 0.008 0.054 0.014
Input part:
Output part:
You can find the application here: https://tonigril.shinyapps.io/rfpred/