sienaNet {RSiena}R Documentation

Function to create a Siena network object

Description

Creates a Siena network object from a matrix or array or list of sparse matrix of triples.

Usage

sienaNet(netarray, type = c("oneMode", "bipartite", "behavior"),
nodeSet = "Actors", sparse = is.list(netarray))

Arguments

netarray matrix (type="behavior" only) or array of values or list of sparse matrices of type "dgTMatrix"
type type of network, default "oneMode"
nodeSet character string naming the appropriate node set. A vector containing 2 character strings for a bipartite network: "rows" first, then "columns".
sparse logical: set to TRUE if the data is in sparse matrix format, FALSE otherwise

Details

Adds attributes so that the array or list of matrices can be used in a Siena model fit.

Value

An object of class "sienaNet".

Author(s)

Ruth Ripley

References

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

See Also

sienaDataCreate

Examples


mynet1 <- sienaNet(array(c(s501,s502,s503),dim=c(50,50,3)))


[Package RSiena version 1.0.5 Index]