Learn R Programming

RSiena (version 1.0.9)

coCovar: Function to create a constant covariate object

Description

This function creates a constant covariate object from a vector.

Usage

coCovar(val, nodeSet='Actors')

Arguments

Value

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

Details

When part of a Siena data object, the covariate is associated with the node set nodeSet of the Siena data object.

References

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

See Also

sienaDataCreate

Examples

Run this code
myconstCovar <- coCovar(s50a[,1])

Run the code above in your browser using DataLab