Skip to content

ccc_test function#74

Merged
arcaldwell49 merged 13 commits intomasterfrom
feature/ccc-test
Feb 2, 2026
Merged

ccc_test function#74
arcaldwell49 merged 13 commits intomasterfrom
feature/ccc-test

Conversation

@arcaldwell49
Copy link
Owner

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.

arcaldwell49 and others added 4 commits January 23, 2026 08:36
- 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.
Copilot AI review requested due to automatic review settings January 23, 2026 22:28
@arcaldwell49 arcaldwell49 added the enhancement New feature or request label Jan 23, 2026
@arcaldwell49 arcaldwell49 linked an issue Jan 23, 2026 that may be closed by this pull request
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 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

arcaldwell49 and others added 2 commits February 2, 2026 11:46
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>
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

Copilot reviewed 9 out of 10 changed files in this pull request and generated 9 comments.

arcaldwell49 and others added 7 commits February 2, 2026 12:16
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>
Copy link
Owner Author

@arcaldwell49 arcaldwell49 left a comment

Choose a reason for hiding this comment

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

Passing all tests

@arcaldwell49 arcaldwell49 merged commit 864e1e3 into master Feb 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CCC is computed only by deprecated or jamovi functions

2 participants