Learn R Programming

RSiena (version 1.0.11.110)

sienaModelCreate: Function to create an object containing the algorithm specifications for parameter estimation in RSiena

Description

Creates an object with specifications for the algorithm for parameter estimation in RSiena.

Usage

sienaModelCreate(fn, projname = "Siena", MaxDegree = 0, 
     useStdInits = FALSE, n3 = 1000, nsub = 4, maxlike = FALSE,
     diag = !maxlike, condvarno = 0, condname = "", firstg = 0.2,
     cond = NA, findiff = FALSE, seed = NULL, pridg=0.05,
     prcdg=0.05, prper=0.3, pripr=0.25, prdpr=0.25, prrms=0.1 )

Arguments

Value

Returns a model object of class "sienaModel" containing:projnameString value of name of project.useStdInitsBoolean, see above.checktimeBoolean, set to TRUE: report time in the phases or not.n3number of iterations in Phase 3firstgInitial value of the scaling ('gain') parameter in the Robbins-Monro algorithm.maxratValue used to control the maximum size of the jumps.maxmaxratValue used to control the maximum size of the jumps.FRANnameName of simulation function FRAN. Is derived by sienaModelCreate from fn and maxlike.maxlikeBoolean: is FRAN using maximum likelihood?cconditionalBoolean: is FRAN using conditional estimation?condvarnoNumber of dependent variable on which to condition.condnameName of dependent variable on which to condition.FinDiff.methodBoolean: are derivatives calculated using finite differences?nsubNumber of subphases in phase 2.diagBoolean: use only the diagonal of the derivative matrix?ModelTypeAlways 1.MaxDegreeNamed vector of maximum degree values, or NULL.

Details

Model specification is done via this object for siena07. This function creates an object with the elements required to control the Robbins-Monro algorithm. Those not available as arguments can be changed manually where desired.

References

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

See Also

This is for use in siena07.

Examples

Run this code
mymodel <- sienaModelCreate(projname="NetworkDyn")
StdModel <- sienaModelCreate(projname="NetworkDyn",useStdInits=TRUE)
CondModel <- sienaModelCreate(projname="NetworkDyn",condvarno=1,cond=TRUE)
Max10Model <- sienaModelCreate(projname="NetworkDyn",MaxDegree=c(mynet=10)) 
# where mynet is the name of the network object created by sienaNet().

Run the code above in your browser using DataLab