title: How to make categorical time-series predictions in R?
body: <p>I've done some time-series forecasting in R with ARIMA, which predicts a value at a future timepoint given a series of continuous values, but I'm not sure how to approach time-series prediction when dealing with categorical values. </p>
  
  <p>Given these simple training sequences for 5 people's morning dress routine, how can I generate predictions for the final two entries for person6? </p>
  
  <pre><code>person1 &lt;- c("underwear", "socks", "pants", "shirt", "tie", "shoes", "jacket")
  person2 &lt;- c("underwear", "pants",  "socks", "shirt", "tie", "jacket", "shoes")
  person3 &lt;- c("socks", "underwear",  "pants", "shirt", "tie", "shoes", "jacket")
  person4 &lt;- c("underwear", "socks", "shirt", "pants", "tie", "shoes", "jacket")
  person5 &lt;- c("underwear", "socks", "shirt", "tie", "pants", "jacket", "shoes")
  person6 &lt;- c("underwear", "socks", "pants", "shirt") # Predict next events
  </code></pre>
  
  <p>Thanks in advance!</p>