Learn R Programming

RSiena (version 1.0.9)

setEffect: Function to set various columns in an effects object in a Siena model

Description

This function provides an interface to change various columns of a selected row of a Siena effects object

Usage

setEffect(myeff, shortName, parameter = 0, fix = FALSE,
test = FALSE, initialValue = 0, include = TRUE,
name = myeff$name[1], type = "eval", interaction1 = "",
interaction2 = "")

Arguments

Value

An updated version of the input effects object, with one rows updated. Details of the row altered will be printed.

Details

The arguments should identify the effects completely. The parm column will be set to the parameter value requested. The include column will be set to the include 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 <- setEffect(myeff, outInv, 3) ##parameter

Run the code above in your browser using DataLab