varDyadCovar: Function to create a changing dyadic covariate object.

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/sienautils.r

Description

This function creates a changing dyadic covariate object from an array.

Usage

1
2
varDyadCovar(val, centered=TRUE, nodeSets=c("Actors", "Actors"),
    sparse=is.list(val), type=c("oneMode", "bipartite"))

Arguments

val

Array of covariate values, third dimension is the time. Alternatively, a list of sparse matrices of type "dgTMatrix".

centered

Boolean: if TRUE, then the overall mean value is subtracted.

nodeSets

Names (character string) of the associated node sets. If the entire data set contains more than one node set, then the node sets must be specified in all data objects.

sparse

Boolean: whether sparse matrices or not.

type

oneMode or bipartite: whether the matrix refers to a one-mode or a bipartite (two-mode) network.

Details

When part of a Siena data object, the covariate is assumed to be associated with the node sets named NodeSets of the Siena data object. The names of the associated node sets will only be checked when the Siena data object is created.

Value

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

Author(s)

Ruth Ripley

References

See http://www.stats.ox.ac.uk/~snijders/siena/

See Also

sienaDataCreate, coDyadCovar, coCovar, varCovar

Examples

1
mydyadvar <- varDyadCovar(array(c(s501, s502), dim=c(50, 50, 2)))

RSiena documentation built on Dec. 6, 2018, 3:01 p.m.