Merged
Conversation
- Create ccc_test() that returns htest class object - Supports simple, reps, and nest data types - Includes hypothesis testing with configurable null value - Add comprehensive unit tests (60 tests) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
CCC and z-transformed standard errors added.
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds a new ccc_test() function to compute Lin's Concordance Correlation Coefficient (CCC) and perform hypothesis testing, returning a standard R htest object. This addresses a need for CCC functionality in non-deprecated functions of the SimplyAgree package.
Changes:
- Adds
ccc_test()function supporting simple, replicate, and nested data structures with flexible data frame or vector interfaces - Implements Fisher Z-transformation based hypothesis testing with configurable null values and alternative hypotheses
- Provides comprehensive test coverage with 276 test cases validating correctness against existing
agree_*()functions - Includes developer documentation files (CLAUDE.md, references structure) and streamlined Copilot instructions
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| R/ccc_test.R | New function implementation with data preparation helpers and hypothesis testing |
| tests/testthat/test-ccc_test.R | Comprehensive test suite covering all data types, validation, and edge cases |
| man/ccc_test.Rd | Auto-generated documentation from roxygen2 comments |
| NAMESPACE | Exports new ccc_test function |
| _pkgdown.yml | Adds function to "Other Miscellaneous Functions" section |
| CLAUDE.md | New developer guide for package conventions |
| references/general/README.md | Documentation for references directory structure |
| .gitignore | Excludes working references directory |
| .Rbuildignore | Excludes CLAUDE.md and references from package build |
| .github/copilot-instructions.md | Streamlined version of developer instructions |
remove duplicate Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
fix naming for ccc prepare data Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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 independent CCC function that provides output in the form of a Concordance Correlation Coefficient. Resolves issue raised about CCC not be available in non-deprecated functions.