Learn R Programming

RSiena (version 1.0.9)

coDyadCovar: Function to create a constant dyadic covariate object.

Description

This function creates a constant dyadic covariate object from a matrix.

Usage

coDyadCovar(val, nodeSets=c("Actors","Actors"))

Arguments

Value

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

Details

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

References

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

See Also

sienaDataCreate

Examples

Run this code
mydyadvar <- coDyadCovar(s503)

Run the code above in your browser using DataLab