powered by
This function creates a constant covariate object from a vector.
coCovar(val, nodeSet='Actors')
Vector of covariate values
Name of node set: character string. If the entire data set contains more than one node set, then the node sets must be specified in all data objects.
Returns the covariate as an object of class "coCovar", in which form it can be used as an argument to SienaDataCreate.
SienaDataCreate
When part of a Siena data object, the covariate is associated with the node set nodeSet of the Siena data object.
See http://www.stats.ox.ac.uk/~snijders/siena/
sienaDataCreate, varCovar, coDyadCovar, varDyadCovar
sienaDataCreate
varCovar
coDyadCovar
varDyadCovar
# NOT RUN { myconstCovar <- coCovar(s50a[,1]) # }
Run the code above in your browser using DataLab