Learn R Programming

RSiena (version 1.0.9)

sienaCompositionChange: Functions to create a Siena composition change object

Description

Used to create a list of events describing the changes over time of a Siena actor set

Usage

sienaCompositionChange(changelist, nodeSet = "Actors", option = 1)
sienaCompositionChangeFromFile(filename, nodeSet = "Actors",
    fileobj=NULL, option = 1)

Arguments

Value

An object of class "compositionChange", a list of numeric vectors, with attributes:NodeSetName of node setOptionOption

Rdversion

1.1

Details

Intervals are treated as closed at each end.

References

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

See Also

sienaNodeSet

Examples

Run this code
clist <- list(c(1, 3), c(1.4, 2.5))
#or
clist <- list(c('1', '3'), c('1.4', '2.5'))

compChange <- sienaCompositionChange(clist)

filedata <- c("1 3", "1.4 2.5")
write.table(filedata, "cc.dat",row.names=FALSE, col.names=FALSE,
    quote=FALSE)
## file will be
## 1 3
## 1.4 2.5
compChange <- sienaCompositionChangeFromFile("cc.dat")

Run the code above in your browser using DataLab