Learn R Programming

RSiena (version 1.0.9)

sienaDataCreate: 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, getDocumentation=FALSE)

Arguments

Value

An object of class "siena" which is designed to be used in a siena model fit The components of the object are.nodeSetsList of node sets involvedobservationsInteger indicating number of waves of datadepvarsList of networks and behavior variablescCovarsList of constant covariatesvCovarsList of changing covariatesdycCovarsList of constant dyadic covariatesdyvCovarsList of changing dyadic covariatescompositionChangeList of composition change objects corresponding to the node sets

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.

References

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

See Also

sienaNet, coCovar, varCovar, coDyadCovar, varDyadCovar, sienaCompositionChange

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)

Run the code above in your browser using DataLab