I'm currently doing analysis on a website which requires that I create a decision tree diagram showing the likely route that people take whenever they arrive on the website. I am dealing with a
data.frame which shows the paths of all customers to the site, starting from the homepage.
For example, a customer could take the following path:
Homepage - pg 1 Kitchen Items page - pg 2 Pots and Pans page - pg 3
so this customer would have a 3 page journey. What I want to try to do in R is combine all customers paths and thereby assign a probability to a customer following a certain path on the site. For example, if I were to examine all paths I could find that 34% of people who arrive on the Homepage go onto the 'Kitchen items page'. Does R have this facility?
Any steer in the right direction for this is very much appreciated!