Skip to content

Conversation

@gvegayon
Copy link
Member

No description provided.

@gvegayon gvegayon linked an issue Oct 13, 2025 that may be closed by this pull request
@gvegayon gvegayon marked this pull request as ready for review November 19, 2025 21:39
@gvegayon gvegayon requested a review from Copilot November 19, 2025 21:39
Copilot finished reviewing on behalf of gvegayon November 19, 2025 21:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for multi-group transition formulas in DEFM models, enabling specification of higher-order Markov processes (order > 1) using explicit bracketed notation. The changes include enhanced formula parsing, improved naming conventions, and comprehensive test coverage.

  • Enhanced formula parsing to support both 2-group (backwards compatible) and m_order+1 group notation for transition effects
  • Refactored motif naming logic to display each time point separately with consistent bracket notation
  • Added validation logic and error checking for the new multi-group formula syntax

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/terms.cpp Added type casting and validation for term counter
inst/tinytest/test_markov_two.R New test validating order-2 Markov model with 3-group formula syntax
inst/tinytest/test_defm.R Extended test comparing formula-based and matrix-based model specifications
inst/include/barry/models/defm/formula.hpp Major enhancement to support multi-group transition formulas with explicit time point specification
inst/include/barry/models/defm/counters.hpp Refactored motif naming to consistently show time points separately; fixed typo "ennumerated" → "enumerated"
Makefile Added --delete flag to rsync for cleaner updates
.github/workflows/r.yml Added valgrind check configuration to CI workflow

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <[email protected]>
@gvegayon gvegayon merged commit 86ffeaa into master Nov 19, 2025
8 checks passed
@gvegayon gvegayon deleted the gvegayon/3-formula branch November 19, 2025 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows fails using td_formula()

2 participants