addDummyEffects: addDummyEffects

View source: R/3b_wrapperFunctions.R

addDummyEffectsR Documentation

addDummyEffects

Description

A function to add one alter_covariate effect for each location dummy variable included in the state. Dummy variables in the state object are named "dummyXX", where XX can take any value. This is particularly useful when including fixed effects for each location to explicitly model the indegree of each location.

Usage

addDummyEffects(effectsObject, state)

addFixedEffects(effectsObject, state)

Arguments

effectsObject

The monan Effects object to which the dummy location effects should be added.

state

The monan state (data) object that the effects object applies to

Value

An object of type effectsList.monan

Examples

myEffects <- createEffects(myState) |>
  addEffect(loops) |>
  addDummyEffects(myState)

MoNAn documentation built on Oct. 11, 2026, 5:09 p.m.