ContingencyTable {ceg} | R Documentation |
ContingencyTable
Description
This function creates the contigency tables associated with each variable in the event tree.
Usage
ContingencyTable(data, stratified.event.tree)
Arguments
data |
data.frame whose columns depict variables and rows correspond to units that are observed in the system |
stratified.event.tree |
Stratified.event.tree S4 object |
Value
a list of matrices that represent the contigency tables associated with each variable in the event tree. The matrix corresponding to a particular variable presents the counts of each combination of the categories of the variables that precede it in the event tree according to its categories. The combinations of the categories of the upstream variables are displayed on the rows and represent the situations associated with the target variable. The categories of the target variable are represented on the columns and corresponds to each event that can unfold from a situation associated with the target variable.