Specifying and Fitting the M4 Reference Model

knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
library(eyeprocess)

The reference model uses a marginalized finite-state Markov process over explicitly ordered participant/session sequences. K=1 is a formal null and K=2 is the conservative default.

sim <- simulate_multimodal_m4(n_person = 30, n_item = 8, seed = 20260820)
audit <- audit_multimodal_m4_identifiability(sim, include_posterior = FALSE)
audit

A deliberate CmdStanR fit is required for posterior inference; documentation does not compile or sample automatically.

fit <- fit_multimodal_m4(sim, spec = multimodal_m4_spec())
summary(fit)
fitted(fit, type = "state")


Try the eyeprocess package in your browser

Any scripts or data that you put into this service are public.

eyeprocess documentation built on Sept. 28, 2026, 5:08 p.m.