varDyadCovar {RSiena}R Documentation

Function to create a changing dyadic covariate object.

Description

This function creates a changing dyadic covariate object from an array.

Usage

varDyadCovar(val, nodeSets=c('Actors','Actors'))

Arguments

val Array of covariate values, Third dimension is the time
nodeSets Names (character string) of the associated node sets

Details

When part of a Siena data object, the covariate is assumed to be associated with the node sets named NodeSets of the Siena data object. The names of the associated node sets will only be checked when the Siena data object is created.

Value

Returns the covariate as an object of class 'varDyadCovar', in which form it can be used as an argument to SienaData.create.

Author(s)

Ruth Ripley

References

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

See Also

sienaDataCreate

Examples


mydyadvar <- varDyadCovar(array(c(s501,s502),dim=c(50,50,2)))


[Package RSiena version 1.0.5 Index]