Learn R Programming

RSiena (version 1.1-212)

maxlikefn: A ML version of FRAN

Description

A function to be called as 'FRAN'. All in R. very slow. work in progress.

Usage

maxlikefn(z, x, INIT = FALSE, TERM = FALSE, data,
effects = NULL, nstart = 1000, pinsdel = 0.6,
pperm = 0.3, prelins = 0.1, multfactor=2, promul = 0.1,
promul0 = 0.5, pdiaginsdel = 0.1, fromFiniteDiff = FALSE,
noSamples = 1, sampInterval = 50, int = 1)

Arguments

Value

Depends on the call. If INIT or initC or TERM are true, returns z, the control object. Otherwise, returns a list containing:fraSimulated scoresdff2nd deriv, not phase 2OKcould be set to FALSE if serious error has occurred

Details

This can be used for the element FRAN of the model object. The arguments with no defaults must be passed in on the call to siena07. Also you must set the option maxlike=TRUE in the call to sienaModelCreate()

References

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

See Also

siena07

Examples

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

Run the code above in your browser using DataLab