Learn R Programming

RSiena (version 1.0.9)

getEffects: Function to create a Siena effects object

Description

Creates a basic list of effects for each of the dependent variables in the input siena object.

Usage

getEffects(x, nintn = 10, behNintn=4, getDocumentation=FALSE)

Arguments

Value

An object of class "sienaEffects" or "sienaGroupEffects": this is a data frame, each part of which relates to one dependent variable in the input object, with columnsnamename of the dependent variableeffectNamename of the effectfunctionNamename of the functionshortNameshort name for the effectinteraction1second variable in interaction, if anyinteraction2third variable in interaction, if anytype"eval","endow", or "rate"basicRateboolean: whether a basic rate parameterincludeboolean: include or notrandomEffectsboolean: random or fixed effectfixboolean: fix value or nottestboolean: test required or notinitialValuestarting value for estimationparmparameter valuesfunctionType"objective", "rate"periodperiod for basic rate parametersrateType"Structural", "covariate"effectFnhere NULL, but could be replaced by a function laterstatisticFnhere NULL, but could be replaced by a function lateruntrimmedValueUsed to store initial values which could be trimmednetType"oneMode", "behavior", "bipartite"groupNamename of relevant data objectgroupsequential number of relevant data object in total

Details

Considers all the elements of the input siena data object and creates lists of effects for use in siena model fits. Note that the class of the return object may be lost if the data.frame is edited using fix.

References

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

See Also

sienaDataCreate

Examples

Run this code
mynet1 <- sienaNet(array(c(s501, s502, s503), dim=c(50, 50, 3)))
mynet2 <- sienaNet(s50a, type='behavior')
mycovar <- coCovar(rnorm(50))
mydyadcovar <- coDyadCovar(matrix(as.numeric(rnorm(2500) > 2), nrow=50))
mydata <- sienaDataCreate(mynet1, mynet2, mycovar, mydyadcovar)
myeff <- getEffects(mydata)

Run the code above in your browser using DataLab