Thank you very much for your help.
I am still not able to get the obvious rules (like {A,C} -> {K}, etc.).
Can you please try it once again. This time I have loaded the file in Github and fetching data directly. This will make sure that we are using the same data and format.
Can you please run the following program:
myfile <- read.csv(url("https://raw.githubusercontent.com/samitChak/datatable/master/Test.csv"), header = F)
write.csv(myfile, "test_samit_1.csv")
library(arules)
dados <- read.transactions("test_samit_1.csv", sep = ",")
summary(dados)
inspect(dados[1:5])
itemFrequency(dados[, 1:3])
dadosrules <- apriori(dados,
parameter = list(support = 0.01, confidence = 0.25, minlen = 2))
inspect(dadosrules)
The output that I am receiving is:
> inspect(dadosrules)
lhs rhs support confidence coverage lift count
[1] {24} => {A,C,K} 0.03846154 1 0.03846154 3.250000 1
[2] {23} => {A,C,K} 0.03846154 1 0.03846154 3.250000 1
[3] {22} => {A,C,K} 0.03846154 1 0.03846154 3.250000 1
[4] {21} => {A,C,K} 0.03846154 1 0.03846154 3.250000 1
[5] {20} => {A,C,K} 0.03846154 1 0.03846154 3.250000 1
[6] {19} => {A,C,K} 0.03846154 1 0.03846154 3.250000 1
[7] {18} => {A,C,K} 0.03846154 1 0.03846154 3.250000 1
[8] {17} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[9] {16} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[10] {15} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[11] {14} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[12] {13} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[13] {12} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[14] {11} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[15] {10} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[16] {9} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[17] {8} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[18] {7} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[19] {6} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[20] {5} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[21] {4} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[22] {3} => {A,C,G,K} 0.03846154 1 0.03846154 1.733333 1
[23] {A,B} => {2} 0.03846154 1 0.03846154 26.000000 1
[24] {2} => {A,B} 0.03846154 1 0.03846154 26.000000 1
[25] {A,B,J,K} => {1} 0.03846154 1 0.03846154 26.000000 1
[26] {1} => {A,B,J,K} 0.03846154 1 0.03846154 26.000000 1
[27] {25} => {A,C,K} 0.03846154 1 0.03846154 3.250000 1
>
As you can see, it does not help.