[R] a question on using arules package

From: Weiwei Shi <helprhelp_at_gmail.com>
Date: Thu 05 Oct 2006 - 23:48:21 GMT


hi, there:

I have a question on use of arules package:

suppose i have a classification problem with class id = 1 or 0.

i put predictors and class ids together and tranform all of them into binary thus i got a binary matrix. When I build the rules from it, I subset the rules to 2 by defining rhs %in% "classid = 1" or "2". (Actually i can build rules from two seperate datasets (by classid) and use eclat to get most frequent itemset).

Anyway, I am thinking to use "chisq" or something to test the differentiating power of "lhs" and look for the most powerful "lhs". But I just don't know how to do it. Maybe someone can explain to me about the structure of "rules" from that package.

-- 
Weiwei Shi, Ph.D
Research Scientist
GeneGO, Inc.


"Did you always know?"
"No, I did not. But I believed..."
---Matrix III ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Received on Fri Oct 06 09:53:56 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 06 Oct 2006 - 00:30:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.