sienaNodeSet {RSiena}R Documentation

Function to create a node set

Description

Creates a Siena node set which can be used as the nodes in a siena network.

Usage

sienaNodeSet(n, nodeSetName='Actors', names = NULL)

Arguments

n integer, size of set
nodeSetName character string naming the node set
names optional character string vector of length n of the names of the nodes.

Value

Returns a Siena node set, an integer vector, possibly with names, plus the attributes, class equal to 'sienaNodeSet', and nodeSetName equal to the argument nodeSetName.

Author(s)

Ruth Ripley

References

See http://www.stats.ox.ac.uk/~snijders/siena/

Examples

students <- sienaNodeSet(50,'student')

[Package RSiena version 1.0.5 Index]