The data frame looks like this:
ID path conversion
1 A 1
2 B 0
3 A 0
4 B > C 0
5 A 0
6 A > A 0
I have created the markov model using the function:
ma <- markov_model(df,
var_path = 'path',
var_conv = 'conversion',
out_more = TRUE)
I have a very large data set and have created a Markov chain. Before I was using 6 variables and when viewing the transition matrix, it seemed fine. However when I added an extra variable some of the probabilities gave an infinite value. Some channels do not go to each other and the probability is not shown, which I understand, but I dont understand the Inf value. I think they should be zeros as there is little/no movement from each of those channels but I dont know why it doesn't show this.
ma$tranisiton_probabilities gives
channel_from channel_to transition_probability
1 (start) A 0.816666667
2 (start) B 0.150000000
3 (start) C 0.025000000
4 (start) D 0.008333333
5 A (conversion) 0.860215054
6 A D 0.078853047
7 A B 0.057347670
8 A C 0.003584229
9 B A Inf
10 B D Inf
11 C A Inf
12 D A Inf