Learn R Programming

RSiena (version 1.1-212)

sienaDataConstraint: Function to change the values of the constraints between networks.

Description

This function allows the user to change the constraints of "higher", "disjoint" and "atLeastOne" for a specified pair of networks in a Siena data object.

Usage

sienaDataConstraint(x, net1, net2,
type = c("higher", "disjoint", "atLeastOne"), value = FALSE)

Arguments

Value

Updated Siena data object.

Details

The value of the appropriate attribute is set to the value requested.

References

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

See Also

sienaDataCreate

Examples

Run this code
mynet1 <- sienaNet(array(c(s501,s502,s503),dim=c(50,50,3)))
mynet2 <- sienaNet(s50a,type='behavior')
mydata <- sienaDataCreate(mynet1, mynet2)
mydata <- sienaDataConstraint(mydata, mynet2, mynet1, "higher", FALSE)

Run the code above in your browser using DataLab