I am trying to ao apply the apriori algorithm to a binary matrix, but all of my values are returning 0.
I performed a summary function on the matrix to confirm that it has non-zero values. I tried coercing into the transactions form using:
trans<-as(a,"transactions")
and I tried applying apriori directly to the matrix using:
test<-apriori(a,parameter=list(support=.02,confidence=0,minlen=3,maxlen=3))
in both cases I got the same result seen below.
Anyone else experienced this?
Thanks
parameter specification:
confidence minval smax arem aval originalSupport support minlen maxlen target ext
0 0.1 1 none FALSE TRUE 0.02 3 3 rules FALSE
algorithmic control:
filter tree heap memopt load sort verbose
0.1 TRUE TRUE FALSE TRUE 2 TRUE
apriori - find association rules with the apriori algorithm
version 4.21 (2004.05.09) (c) 1996-2004 Christian Borgelt
set item appearances ...[0 item(s)] done [0.00s].
set transactions ...[0 item(s), 1286 transaction(s)] done [0.00s].
Error in apriori(a, parameter = list(support = 0.02, confidence = 0, minlen = 3, :
In addition: Warning message:
In asMethod(object) :
'NA's coerced to 'FALSE' in coercion to logical sparse