transitions {CADF} | R Documentation |
Calculate transition periods between two timeperiods
Description
Calculate transition periods between two timeperiods
Usage
transitions(timeperiod0, timeperiod1, buyvar = "Y", nobuyvar = "N")
Arguments
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 |
Value
2 x 2 transaction matrix
Examples
timeperiod0 <- c("Y", "Y", "Y", "Y", "Y")
timeperiod1 <- c("N", "Y", "N", "Y", "N")
transitions(timeperiod0, timeperiod1)
[Package CADF version 0.1 Index]