coCovar {RSiena}R Documentation

Function to create a constant covariate object

Description

This function creates a constant covariate object from a vector.

Usage

coCovar(val, nodeSet='Actors')

Arguments

val Vector of covariate values
nodeSet Name of node set: character string

Details

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

Value

Returns the covariate as an object of class "coCovar", 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


myconstCovar <- coCovar(s50a[,1])


[Package RSiena version 1.0.5 Index]