Learn R Programming

sna (version 2.8)

sr2css: Convert a Row-wise Self-Report Matrix to a CSS Matrix with Missing Observations

Description

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.

Usage

sr2css(net)

Value

An array (graph stack) containing the CSS

Arguments

net

an adjacency matrix.

Author

Carter T. Butts buttsc@uci.edu

Details

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.

References

Krackhardt, D. (1987). Cognitive Social Structures, 9, 109-134.

Examples

Run this code
#Start with some random reports
g<-rgraph(10)

#Transform to CSS format
c<-sr2css(g)

Run the code above in your browser using DataLab