Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

RSiena (version 1.0.9)

includeInteraction: Function to create user-specified interactions for a Siena model.

Description

This function provides an interface to allow easy update of an unspecified interaction row in a Siena effects object.

Usage

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

Arguments

Value

An updated version of the input effects object, with the include column and the effect1 and effect2 and possibly effect3 columns of one row updated. Details of the fields altered will be printed.

Details

The details provided should uniquely identify up to three effects. If so, an interaction effect will be created and included or not in the model.

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 <- includeInteraction(myeff, transTrip, egoX,
interaction1=c("", "mynet2"))

Run the code above in your browser using DataLab