addEffect
A function to add addtional effects to a moman effects object
addEffect(effectsObject, effectName, ...)
effectsObject
: The monan Effects object to which another effect should be added.effectName
: The name of the effect that should be added (e.g. loops)....
: Additional parameters of the effect, for example alpha, attribute.index, or resource.attribute.indexAn object of type effectsList.monan
# Create effects object and add effects myE1 <- createEffects(myState) myE1 <- addEffect(myE1, loops) myE1 <- addEffect(myE1, reciprocity_basic) myE1 <- addEffect(myE1, effectName = same_covariate, attribute.index = "region") # Or simpler myE1 <- createEffects(myState) |> addEffect(loops) |> addEffect(reciprocity_basic) |> addEffect(same_covariate, attribute.index = "region")
Useful links
Downloads (last 30 days):