Learn R Programming

MoNAn (version 1.1.0)

createEffectsObject: createEffectsObject

Description

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

Usage

createEffectsObject(effectInit, checkProcessState = NULL)

Value

An object of class "effectsList.monan".

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.

Examples

Run this code
# 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")
  )
)

Run the code above in your browser using DataLab