createEffectsObject {MoNAn} | R Documentation |
createEffectsObject
Description
Specifies the model with endogenous and exogenous predictors. The predictors in the model are called “effects”.
Usage
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. |
Value
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")
)
)
[Package MoNAn version 1.0.0 Index]