View source: R/generate_rules_matrix.R
generate_rules_matrix | R Documentation |
Generates the rules matrix from the feature covariate matrix and a vector of
rules. The number of rows in rules_matrix is equal to the number of samples
in X
, and the number of columns is equal to the number of rules in
rules_list
. Each element of rules_matrix corresponds to a specific data
sample and rule. If the data sample satisfies a rule, the corresponding
element in rules_matrix is set to 1. Otherwise, the element is set to 0.
generate_rules_matrix(X, rules_list)
X |
Features matrix. |
rules_list |
A vector of rules. |
A causal rules matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.