transitions | R Documentation |
Calculate transition periods between two timeperiods
transitions(timeperiod0, timeperiod1, buyvar = "Y", nobuyvar = "N")
timeperiod0 |
Column representing the 'from' side of the transition probability |
timeperiod1 |
Column representing the 'to' side of the transition probability |
buyvar |
field value that represents a buy, defaults to Y |
nobuyvar |
field value that represents not buy, defaults to N |
2 x 2 transaction matrix
timeperiod0 <- c("Y", "Y", "Y", "Y", "Y")
timeperiod1 <- c("N", "Y", "N", "Y", "N")
transitions(timeperiod0, timeperiod1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.