sienaNet {RSiena} | R Documentation |
Creates a Siena network object from a matrix or array or list of sparse matrix of triples.
sienaNet(netarray, type = c("oneMode", "bipartite", "behavior"), nodeSet = "Actors", sparse = is.list(netarray))
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 |
Adds attributes so that the array or list of matrices can be used in a Siena model fit.
An object of class "sienaNet".
Ruth Ripley
See http://www.stats.ox.ac.uk/siena/
mynet1 <- sienaNet(array(c(s501,s502,s503),dim=c(50,50,3)))