createEffectsObject function

createEffectsObject

createEffectsObject

Specifies the model with endogenous and exogenous predictors. The predictors in the model are called “effects”.

createEffectsObject(effectInit, checkProcessState = NULL)

Arguments

  • effectInit: A list of "effects", where each effect to be included is specified as a further list that contains the effect name and the additional parameters it needs. Effects without further parameters only contain the effect name (e.g., loops).
  • checkProcessState: For internal use only.

Returns

An object of class "effectsList.monan".

Examples

# create an effects object myEffects <- createEffectsObject( list( list("loops"), list("reciprocity_min"), list("dyadic_covariate", attribute.index = "sameRegion"), list("alter_covariate", attribute.index = "size"), list("resource_covar_to_node_covar", attribute.index = "region", resource.attribute.index = "sex" ), list("loops_resource_covar", resource.attribute.index = "sex") ) )
  • Maintainer: Per Block
  • License: GPL (>= 3)
  • Last published: 2024-09-12

Useful links