Skip to content

'ratio_disc' validation - #48

Merged
fbargaglistoffi merged 2 commits into
fbargaglistoffi:masterfrom
charliewang123:fix/ratio-disc-validation
Oct 13, 2026
Merged

fbargaglistoffi merged 2 commits into
fbargaglistoffi:masterfrom
charliewang123:fix/ratio-disc-validation

Conversation

@charliewang123

Copy link
Copy Markdown
Contributor

This fix adds validation to ensure that 'ratio_disc' leaves at least one cluster in both the discovery and estimation samples. Moreover, it rejects invalid boundary values.

Copilot AI balanced review requested due to automatic review settings October 13, 2026 16:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@fbargaglistoffi

Copy link
Copy Markdown
Owner

Thanks, Charlie! I reviewed the changes, and everything looks good. I also added drop = FALSE when constructing A_est to preserve the matrix dimensions.

The updated validation addresses Reviewer 1, Comment 2.3, including the boundary cases arising from rounding. The R CMD check also passed.

@fbargaglistoffi
fbargaglistoffi merged commit 7ef4b44 into fbargaglistoffi:master Oct 13, 2026
5 checks passed
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.

3 participants