Last chance! 50% off unlimited learning
Sale ends in
Given a matrix in which the ith row corresponds to i's reported relations, sr2css
creates a graph stack in which each element represents a CSS slice with missing observations.
sr2css(net)
An array (graph stack) containing the CSS
an adjacency matrix.
Carter T. Butts buttsc@uci.edu
A cognitive social structure (CSS) is an nxnxn array in which the ith matrix corresponds to the ith actor's perception of the entire network. Here, we take a conventional self-report data structure and put it in CSS format for routines (such as bbnam
) which require this.
Krackhardt, D. (1987). Cognitive Social Structures, 9, 109-134.
#Start with some random reports
g<-rgraph(10)
#Transform to CSS format
c<-sr2css(g)
Run the code above in your browser using DataLab