ContingencyTableVariable {ceg}R Documentation

ContingencyTableVariable

Description

This function calculates the contigency table associated with a specific variable.

Usage

ContingencyTableVariable(variable, data, stratified.event.tree)

Arguments

variable

numeric

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 matrix that presents the counts of each combination of the categories of the variables that precede the target variable in the event tree according to the categories of the target variable. The combinations of the categories of the upstream variables are displayed on the rows and represents a situation 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.


[Package ceg version 0.1.0 Index]