Learn R Programming

RSiena (version 1.0.9)

includeEffects: Function to include effects in a Siena model

Description

This function provides an interface to set the include column on selected rows of a Siena effects object

Usage

includeEffects(myeff, ..., include = TRUE, name = myeff$name[1],
type = "eval", interaction1 = "", interaction2 = "")

Arguments

Value

An updated version of the input effects object, with the include columns for one or more rows updated. Details of the rows altered will be printed.

Details

The arguments should identify the effects completely. The include column will be set to the value requested (TRUE or FALSE).

References

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

See Also

getEffects

Examples

Run this code
mynet1 <- sienaNet(array(c(s501, s502, s503), dim=c(50, 50, 3)))
mynet2 <- sienaNet(s50a, type="behavior")
mydata <- sienaDataCreate(mynet1, mynet2)
myeff <- getEffects(mydata)
myeff <- includeEffects(myeff, transTrip, balance)

Run the code above in your browser using DataLab