Learn R Programming

RSiena (version 1.1-232)

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

val

Vector of covariate values

nodeSet

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.

Value

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

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, varCovar, coDyadCovar, varDyadCovar

Examples

Run this code
# NOT RUN {
myconstCovar <- coCovar(s50a[,1])

# }

Run the code above in your browser using DataLab