coCovar {RSiena} | R Documentation |
This function creates a constant covariate object from a vector.
coCovar(val, nodeSet='Actors')
val |
Vector of covariate values |
nodeSet |
Name of node set: character string |
When part of a Siena data object, the covariate is associated with the node set nodeSet of the Siena data object.
Returns the covariate as an object of class "coCovar", in which form it can be used as an argument to SienaData.create.
Ruth Ripley
See http://www.stats.ox.ac.uk/~snijders/siena/
myconstCovar <- coCovar(s50a[,1])