Learn R Programming

RSiena (version 1.1-212)

updateTheta: Function to update the initial values of theta.

Description

This function copies the final values of any matching selected effects froma sienaFit object to a Siena effects object.

Usage

updateTheta(effects, prevAns)

Arguments

Value

The effects object with initial value column updated.

Details

If the previous run was conditional, the estimated rate parameters for the dependent variable on which the run was conditioned are added to the final value of theta. The initial values of any selected effects in the input effects object which match an effect estimated in prevAns will be updated.

References

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

See Also

siena07, getEffects

Examples

Run this code
mynet1 <- sienaNet(array(c(tmp3, tmp4), dim=c(32, 32, 2)))
mydata <- sienaDataCreate(mynet1)
myeff <- getEffects(mydata)
myeff <- includeEffects(myeff, transTrip)
mymodel <- sienaModelCreate(nsub=2, n3=100)
ans <- siena07(mymodel, data=mydata, effects=myeff,  batch=TRUE)
myeff <- updateTheta(myeff, ans)

Run the code above in your browser using DataLab