sienaDataCreate {RSiena}R Documentation

Function to create a Siena data object

Description

Creates a Siena data object from input networks, covariates and composition change objects.

Usage

sienaDataCreate(..., nodeSets=NULL)

Arguments

... objects of class "sienaNet", "coCovar","varCovar","coDyadCovar", "varDyadCovar", "compositionChange"
nodeSets list of Siena node sets. Default is the single node set named 'Actors', length equal to the number of rows in the first object of class "sienaNet"

Details

Checks that the objects fit, that there is at least one network, and adds various attributes to each dependent variable describing the data. If there is more than one nodeSet they must all be specified.

Value

An object of class "siena" which is designed to be used in a siena model fit The components of the object are.

nodeSets List of node sets involved
observations Integer indicating number of waves of data
depvars List of networks and behavior variables
cCovars List of constant covariates
vCovars List of changing covariates
dycCovars List of constant dyadic covariates
dyvCovars List of changing dyadic covariates
compositionChange List of composition change objects corresponding to the node sets

Author(s)

Ruth Ripley

References

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

See Also

sienaNet, coCovar, varCovar, coDyadCovar, varDyadCovar,
sienaCompositionChange

Examples

mynet1 <- sienaNet(array(c(s501,s502,s503),dim=c(50,50,3)))
mynet2 <- sienaNet(s50a,type='behavior')
mydata <- sienaDataCreate(mynet1,mynet2)

[Package RSiena version 1.0.5 Index]