| create_ssim | R Documentation |
Creates an empty SSIM template or converts existing data to SSIM format. SSIM uses V/A/X/O notation to describe pairwise relationships between elements.
create_ssim(n, labels = NULL)
n |
Number of elements, or a character vector of element names. |
labels |
Optional character vector of element labels. If |
SSIM (Structural Self-Interaction Matrix) is the standard input format for ISM analysis. For each pair of elements (i, j) where i < j, the relationship is coded as:
Element i influences element j (i -> j)
Element j influences element i (j -> i)
Both elements influence each other (i <-> j)
No relationship between elements
A character matrix of dimension n x n with:
Upper triangle: empty strings (to be filled with V/A/X/O)
Diagonal: "X" (self-relation)
Lower triangle: "-" (mirror of upper, not used directly)
ssim_to_matrix for converting SSIM to adjacency matrix,
create_relation_matrix for direct matrix creation.
# Create empty 4x4 SSIM
ssim <- create_ssim(4)
print(ssim)
# Create with labels
ssim <- create_ssim(c("Budget", "Resources", "Quality", "Success"))
print(ssim)
# Fill in relationships
ssim["Budget", "Resources"] <- "V"
ssim["Budget", "Quality"] <- "V"
ssim["Resources", "Quality"] <- "V"
ssim["Quality", "Success"] <- "V"
print(ssim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.