Learn R Programming

patterncausality (version 0.2.1)

pc_matrix: Pattern Causality Matrix Object

Description

Creates a pattern causality matrix object. This function constructs an object of class pc_matrix containing the positive, negative, and dark causality matrices, along with item names.

Usage

pc_matrix(
  positive = NULL,
  negative = NULL,
  dark = NULL,
  items = NULL,
  verbose = TRUE
)

Value

An object of class "pc_matrix".

Arguments

positive

Positive causality matrix.

negative

Negative causality matrix.

dark

Dark causality matrix.

items

Names of items in the matrices.

verbose

Logical, whether to print progress information.

Examples

Run this code
data(climate_indices)
dataset <- climate_indices[, -1]
pc_matrix_obj <- pcMatrix(dataset, E = 3, tau = 1, 
  metric = "euclidean", h = 1, weighted = TRUE, 
  verbose = FALSE)
print(pc_matrix_obj)

Run the code above in your browser using DataLab