Skip to contents

Returns the feedback (cyclic) motifs declared via drm_cycle() and passed to drm_sem() / drm_psem() through feedback =. Each motif is a set of nodes explicitly allowed to form a cycle; every undeclared cycle remains an error.

Usage

cycles(object, ...)

# S3 method for class 'drm_sem'
cycles(object, ...)

Arguments

object

A drm_sem object.

...

Unused.

Value

A drm_cycles data frame with columns motif and node.

References

Bollen KA (1996). “An Alternative Two Stage Least Squares (2SLS) Estimator for Latent Variable Equations.” Psychometrika, 61(1), 109–121. doi:10.1007/BF02296961 .

Forré P, Mooij JM (2017). “Markov Properties for Graphical Models with Cycles and Latent Variables.” arXiv:1710.08775. doi:10.48550/arXiv.1710.08775 .

See also

Examples

if (FALSE) { # \dontrun{
sem <- drm_psem(activity = a_fit, boldness = b_fit, data = dat,
                feedback = drm_cycle("activity", "boldness"))
cycles(sem)
} # }