Ethical investment decision tree for a fictional company in hierarchical format
ethical_nl.Rd
This dataframe represents a decision tree in hierarchical format, in which hierarchical relationships are indicated by a nested list
The decision tree is a hypothetical tool to standardise the process of making ethical investments. It was developed to illustrate the functionality of this package.
Format
A nested node list of the ethical investment dataset, in which hierarchical relationships are indicated by a nested list
-
Each list element represents a node or leaf in the tree and has the
following members:
- name
A short, unique alphanumeric code or name for nodes. For leaf nodes (questions), a short code is used. For higher nodes, a descriptive phrase is used.
- rule
The logical rule for nodes, either AND or OR, and NA for leaves.
- question
(Optional) For leaf nodes, the associated question.
- nodes
A list of nested nodes
Source
This is a simple hypothetical decision tree created solely to illustrate the use of the analytical approach.
Details
A data.tree
object is created from the nested list using the
read_tree_node_list()
function.
Examples
# Read the data into a data.tree object for analysis
tree <- load_tree_node_list(ethical_nl)
# View the tree
print_tree(tree)
#> Tree Rule Answer Confidence
#> Invest in Company X AND
#> |-- Financial Viability AND
#> | |-- Profitability and Growth Signals OR
#> | | |-- FIN1
#> | | |-- FIN2
#> | | `-- FIN3
#> | `-- Solvency and Stability AND
#> | |-- FIN4
#> | `-- FIN5
#> |-- Acceptable Environmental Stewardship OR
#> | |-- Has a Clean Current Record AND
#> | | |-- ENV1
#> | | |-- ENV2
#> | | `-- ENV3
#> | `-- Has a Credible Transition Pathway OR
#> | |-- ENV4
#> | |-- ENV5
#> | `-- ENV6
#> |-- Demonstrable Social Responsibility OR
#> | |-- Shows Excellent Internal Culture OR
#> | | |-- SOC1
#> | | |-- SOC2
#> | | |-- SOC3
#> | | `-- SOC4
#> | `-- Has a Positive External Impact AND
#> | |-- SOC5
#> | |-- SOC6
#> | `-- SOC7
#> `-- Strong Corporate Governance AND
#> |-- GOV1
#> |-- GOV2
#> |-- GOV3
#> |-- GOV4
#> `-- GOV5