Learn R Programming

RSiena (version 1.1-232)

updateTheta: Function to update the initial values of theta.

Description

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

Usage

updateTheta(effects, prevAns)

Arguments

effects

Object of class sienaEffects

prevAns

Object of class sienaFit as returned by siena07.

Value

The effects object with initial value column updated.

Details

The initial values of any selected effects in the input effects object which match an effect estimated in prevAns will be updated. 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.

References

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

See Also

siena07, getEffects

Examples

Run this code
# NOT RUN {
mynet1 <- sienaDependent(array(c(tmp3, tmp4), dim=c(32, 32, 2)))
mydata <- sienaDataCreate(mynet1)
myeff <- getEffects(mydata)
myeff <- includeEffects(myeff, transTrip)
myalgorithm <- sienaAlgorithmCreate(nsub=2, n3=100)
ans <- siena07(myalgorithm, data=mydata, effects=myeff,  batch=TRUE)
myeff <- updateTheta(myeff, ans)
# }

Run the code above in your browser using DataLab