Add cross-sectional partner-dependence predictive checks - #18
Open
Pascal-Kueng wants to merge 48 commits into
Open
Pascal-Kueng wants to merge 48 commits into
Pascal-Kueng wants to merge 48 commits into
Conversation
use deep copy of model object to work with to avoid changing settings.
Pascal-Kueng
marked this pull request as ready for review
August 26, 2026 00:36
Pascal-Kueng
commented
Aug 26, 2026
19 tasks
Resolve identifiers in the fitted data mask, with explicit .data/.env access and embraced wrapper arguments. Extract shared pair statistics, labels, and reference summaries while preserving the current Gaussian check contract. Cover name collisions and wrapper/single-simulation behavior; update the development plan to rebuild generalized and ILD work from the accepted base.
Add plain-language comments describing response datasets, fitted-row and partner indices, statistic vectors, reference tables, and plotting inputs. Explain tidy evaluation and the simulation choices that preserve dependence. Executable code and roxygen documentation are unchanged.
This was referenced Sep 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds descriptive checks of partner variation and dependence in cross-sectional dyads. The workflow predicts responses with conditional-model random effects set to zero, simulates complete datasets with new random-effect blocks, subtracts the same predictions from observed and simulated responses, and compares paired summaries in tables and plots.
Scope and implementation
observed_response,simulated_responses,predicted_response, andmodel_frame. Model and simulation metadata live inattr(x, "dyadMLM"); simulation counts come from matrix dimensions.ILD checks, adapters for other response formats, and vignette integration remain follow-up work. Developer notes and the vignette draft are shortened and aligned with the public functions.
Validation
R CMD check --no-manual --ignore-vignettes: 0 errors, 0 warnings, 0 notes.