Package: imaginarycss 0.1.0

Sima Najafzadehkhoei

imaginarycss: Tools for Studying Imaginary Cognitive Social Structure

This package provides functions to measure and test imaginary cognitive social structure (CSS) motifs, which are patterns of perceived relationships among individuals in a social network. The package includes tools for calculating motif frequencies, comparing observed motifs to expected distributions, and visualizing motif structures. It implements the methods described in Tanaka and Vega Yon (2023) <doi:10.1016/j.socnet.2023.11.005>.

Authors:Sima Najafzadehkhoei [aut, cre], George Vega Yon [aut], Kyosuke Tanaka [aut]

imaginarycss_0.1.0.tar.gz
imaginarycss_0.1.0.zip(r-4.7-x86_64)imaginarycss_0.1.0.zip(r-4.7-arm64)imaginarycss_0.1.0.zip(r-4.6-x86_64)imaginarycss_0.1.0.zip(r-4.6-arm64)imaginarycss_0.1.0.zip(r-4.5-x86_64)
imaginarycss_0.1.0.tgz(r-4.6-x86_64)imaginarycss_0.1.0.tgz(r-4.6-arm64)imaginarycss_0.1.0.tgz(r-4.5-x86_64)imaginarycss_0.1.0.tgz(r-4.5-arm64)
imaginarycss_0.1.0.tar.gz(r-4.7-arm64)imaginarycss_0.1.0.tar.gz(r-4.7-x86_64)imaginarycss_0.1.0.tar.gz(r-4.6-arm64)imaginarycss_0.1.0.tar.gz(r-4.6-x86_64)
imaginarycss_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
imaginarycss/json (API)

# Install 'imaginarycss' in R:
install.packages('imaginarycss', repos = c('https://gvegayon.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gvegayon/imaginary-structures/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

cognitive-social-structurescsssnasocial-network-analysisquartocpp

4.13 score 1 stars 17 scripts 53 downloads 9 exports 2 dependencies

Last updated from:84a5c52643. Checks:12 OK, 3 WARNING. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK93
linux-devel-x86_64OK115
source / vignettesOK199
linux-release-arm64OK138
linux-release-x86_64OK110
macos-release-arm64OK172
macos-release-x86_64WARNING357
macos-oldrel-arm64WARNING155
macos-oldrel-x86_64WARNING333
windows-devel-arm64OK295
windows-devel-x86_64OK294
windows-release-arm64OK274
windows-release-x86_64OK252
windows-oldrel-x86_64OK244
wasm-releaseOK98

Exports:barray_to_edgelistcount_imaginary_censuscount_recip_errorsnetsizenew_barry_graphnnetssample_css_networktest_imaginary_censustie_level_accuracy

Dependencies:barryRcpp

Analyzing Perceptual Errors and Individual Accuracy
How to cite | Perceptual Error Analysis | Setup: A Small Example Network | Reciprocity Errors | Imaginary Census | Individual Accuracy | Null Model Testing | Key Takeaways

Last update: 2026-08-06
Started: 2025-12-13

Introduction to imaginarycss
How to cite | Introduction | What Are Cognitive Social Structures? | Key Features | Creating Barry Graph Objects | From a List of Matrices | From a Block-Diagonal Matrix | Inspecting Graph Attributes

Last update: 2026-08-06
Started: 2025-12-13

Network Perception Analysis
How to cite | Imaginary Network Motifs: Testing Systematic Perception Errors | Setup | Data Overview | Creating the CSS Graphs | Observed Motif Counts | Null-Model Testing | Results | Full Summary | Tie-Level Accuracy | Conclusion

Last update: 2026-08-06
Started: 2025-12-13

Real-world example of imaginarycss
How to cite | Krackhardt Advice Network | Data and Perceptions | Individual Accuracy | Perceptual Structure | Organizational Takeaways

Last update: 2026-08-06
Started: 2025-12-13

Readme and manuals

Help Manual

Help pageTopics
Retrieves the edgelist of a barry_graphbarray_to_edgelist
Computes census of imaginary errorscount_imaginary_census
Add a counter for reciprocity errorscount_recip_errors
Krackhardt High-Tech Managers Advice Networkkrackhardt_advice
Krackhardt Advice Network Perception Errorskrackhardt_advice_perceptions
Krackhardt High-Tech Managers Attributeskrackhardt_attributes
Krackhardt High-Tech Managers Friendship Networkkrackhardt_friendship
Krackhardt Friendship Network Perception Errorskrackhardt_friendship_perceptions
Krackhardt High-Tech Managers Reporting Networkkrackhardt_reports
Binary Array Graphbarry_graph netsize new_barry_graph new_barry_graph.list new_barry_graph.matrix nnets
Print Barry Graphprint.barry_graph
Summarize an imaginary censussummary.imaginary_census
Test imaginary census motifs against a null modelplot.imaginarycss_test print.imaginarycss_test summary.imaginarycss_test test_imaginary_census
Null distribution for Cognitive Imaginary Structuressample_css_network tie_level_accuracy