varCovar {RSiena}R Documentation

Function to create a changing covariate object.

Description

This function creates a changing covariate object from a matrix.

Usage

varCovar(val, nodeSet='Actors')

Arguments

val Matrix of covariate values, one row for each actor, one column for each period.
nodeSet Character string containing the name of the associated node set

Details

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

Value

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


myvarCovar <- varCovar(s50a)


[Package RSiena version 1.0.5 Index]