1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Machine Learning for Marketing Analytics in R

Connected

अभ्यास

The survival object

Before you start any survival analysis, you need to transform your data into the right form, the survival object. Remember: daysSinceFirstPurch contains the time between first and second order. boughtAgain tells you if there was a second order or not.

The survival package is already loaded to your workspace.

निर्देश

100 XP
  • Create a survival object from dataNextOrder using Surv(). Store the result as survObj.
  • Take a look at the object's structure.