Lift value calculation
问题 I have a (symmetric) adjacency matrix, which has been created based on the co-occurence of names (e.g.: Greg, Mary, Sam, Tom) in newspaper articles (e.g.: a,b,c,d). See below. How to calculate the lift value for the non-zero matrix elements (http://en.wikipedia.org/wiki/Lift_(data_mining))? I would be interested in an efficient implementation, which could also be used for very large matrices (e.g. a million non-zero elements). I appreciate any help. # Load package library(Matrix) # Data A <-