FindProbTables {rWMBAT} | R Documentation |
Input a training group of data arranged with cases in rows and variables in columns, as well as the class value c for that vector. Each case represents a data vector V. For each possible data value vi, and each variable Vi, it calculates P(C=c|Vi=vi) and stores that result in a 3-D table. The table is arranged with the dimensions (class value, data value, variable number).
FindProbTables(data, class)
data |
double array of discrete integer values, cases in rows and variables in columns |
class |
double column vector. Classification of each case |
3-D array whose (c,d,v) value is P(class=c|data=p) for variable v
Karl Kuschner, Qian Si and William Cooke, College of William and Mary, Dept. of Physics, 2009
http://kwkusc.people.wm.edu/dissertation/dissertation.htm
data(finaldata, traingrpclass) #load the example input data from package probtable <- FindProbTables(finaldata, traingrpclass)