Skip to content

Add matched-null validation for cluster counts - #938

Open
haomeng797-ship-it wants to merge 2 commits into
easystats:mainfrom
haomeng797-ship-it:codex/test-clusters
Open

Add matched-null validation for cluster counts#938
haomeng797-ship-it wants to merge 2 commits into
easystats:mainfrom
haomeng797-ship-it:codex/test-clusters

Conversation

@haomeng797-ship-it

Copy link
Copy Markdown
Member

Closes easystats/easystats#479.

This adds test_clusters(), which compares a selected cluster count with counts from matched-null data generated by matchednull. The default pipeline standardizes the data and uses mclust::Mclust() to select the number of components by BIC; custom scalar-returning clustering functions are also supported.

The public API keeps the main controls explicit, while options such as the copula and parallel evaluation can be passed through ... to matchednull::matched_null_test().

I added tests for custom functions, reproducibility, null and positive controls, argument forwarding, and input validation.

  • 22 targeted tests passed
  • lintr passed
  • package build 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.

Proposal: matched-null validation for the easystats clustering workflow

1 participant