siena07.
They call compiled C++.simstats0c(z, x, data=NULL, effects=NULL, fromFiniteDiff=FALSE,
returnDeps=FALSE, returnChains=FALSE, byWave=FALSE,
returnDataFrame=FALSE, returnLoglik=FALSE)
maxlikec(z, x, data=NULL, effects=NULL,
returnChains=FALSE, byGroup = FALSE, byWave=FALSE,
returnDataFrame=FALSE, returnLoglik=FALSE,
onlyLoglik=FALSE)
initializeFRAN(z, x, data, effects, prevAns = NULL, initC,
profileData = FALSE, returnDeps = FALSE, returnChains =
FALSE, byGroup = FALSE, returnDataFrame = FALSE,
byWave = FALSE, returnLoglik = FALSE, onlyLoglik = FALSE)
terminateFRAN(z, x)simstats0c returns a list containing:returnDeps is TRUE.maxlikec returns a list containing:returnDataFrame.
Only if returnChainss is TRUE.returnLoglik is TRUE. If onlyLoglik is TRUE, only
loglik, accepts,rejects and aborts are returned.initializeFRAN and terminateFRAN return the control
object z.simstats0c or maxlikec
should be used for the element FRAN of the model object, the former when using
estimation by forward simulation, the latter for maximum likelihood estimation.
The arguments with no defaults must be passed in on the call to
siena07.
initializeFRAN and terminateFRAN are called in both
cases. initializeFRAN is also called in bayessiena07mynet1 <- 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)Run the code above in your browser using DataLab