Constructs a mixture of directed graphical models for a discrete spatial random field defined on an undirected graph.
Usage
mdgm_model(
nug,
dag_type = c("spanning_tree", "acyclic_orientation", "rooted"),
n_colors = 2L,
emission = NULL
)Arguments
- nug
A
NaturalUndirectedGraphobject defining the spatial structure.- dag_type
DAG construction type:
"spanning_tree","acyclic_orientation", or"rooted".- n_colors
Number of categories for the spatial field (default 2).
- emission
Optional emission family for hierarchical models:
"bernoulli","gaussian", or"poisson". IfNULL(default), creates a standalone model where the spatial field is observed directly.
Value
An MdgmModel object.