Manipulate and Analyze Round Robin Dyadic Data
Overview
Provides utilities for processing and analyzing dyadic data collected using a round-robin design, in which each person in a group rates or interacts with every other person on at least one variable. Data manipulation functions prepare datasets for dyadic data analysis by creating the actor and partner dummy variables required by the social relations model (SRM). Analysis functions implement the SRM using multilevel modeling via a custom 'nlme' covariance class ('pdSRM'), following the approach of Snijders and Kenny (1999) doi:10.1111/j.1475-6811.1999.tb00204.x and Knight and Humphrey (2019) doi:10.1037/0000115-019. The package estimates group, actor, partner, and relationship variance components along with generalized and dyadic reciprocity correlations, and supports both null and fixed-effects models.
New: Co-Partner Social Relations Model (cpsrm(), cpsrm_run())
- Added
cpsrm(), a friendly entry point for the Co-Partner SRM (CP-SRM) that takes raw long-format data plusactor_id/group_idand builds the required actor/partner dummy matrices internally viacreate_cp_dummies(), then fits the model withcpsrm_run(). - Added
cpsrm_run(), the full-control fitting function underneathcpsrm(), together withcreate_cp_dummies(),print.cpsrm(), andsummary.cpsrm().cpsrm_run()fits the CP-SRM -- in which each observation involves one actor and all other members of a group acting simultaneously as partners (e.g. three-person teams) -- via REML, using either a Woodbury-matrix-identity ("block") or full-covariance-loop ("loop") formulation, and supports variable group sizes.
Show all changes in 2.0.0Hide the rest of the changes in 2.0.0
print.cpsrm()/summary.cpsrm()report variance-of-total percentages under BOTH the RAW convention (each component's own share of total variance; the correct basis for comparing Partner's effect size to Actor's) and the COMBINED convention (Partner's contribution scaled by the number of partners summed into each row; the correct basis for a full total-variance decomposition), wheneverweight_partners = FALSEand the number of partners per row is constant.?cpsrm_rundocuments (a) the RAW vs. COMBINED distinction and why conflating them can make partner effects look several times more or less important than actor effects than they really are, and (b) the boundary-corrected likelihood-ratio test procedure for testing whether a variance component is zero (one-sided halved chi-square for a single component; the three-part 1/4-1/2-1/4 mixture for a joint two-component test), since variance components are boundary-constrained and the naive two-sided/unhalved chi-square test is not valid here.
Naming consistency: snake_case rename
- Renamed several existing functions to snake_case for consistency with the new
cpsrm()/cpsrm_run()/create_cp_dummies()naming:createDummies()->create_dummies(),srmRun()->srm_run(),srmVarPct()->srm_var_pct(),srmPseudoRSq()->srm_pseudo_rsq(). - Every renamed function's old name still works exactly as before and remains exported; calling it emits a one-time
.Deprecated()warning pointing to the new name and new (also renamed) arguments. No user-facing breaking changes.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-08
- ERROR12 OK, 1 ERROR2026-06-07
- OK8 OK2026-04-22
Documentation
- Help pages
- 21
- Examples that run
- 31%4 run in a plain check · 8 only when donttest examples are enabled (R CMD check --as-cran) · 1 hold no code
- Exported functions with examples
- 62%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 19%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Commits over time
Commit identities over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/andrewpknight/roundrobinr on 2026-10-11.
Dependencies
Installing roundRobinR adds 1 package (1 with compiled code, 5.7 MB of source tarballs). Heaviest: data.table 5.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 2.0.0Latest2026-09-17 · current release · diff ↗ ·
added 8 exports
cpsrm, cpsrmRun, cpsrm_run, create_cp_dummies, create_dummies, srm_pseudo_rsq, srm_run, srm_var_pct - RR 4.6.0 released · 2026-04-24
- 1.0.12026-04-21
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-04-21
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 9.8 KB / 1 file
- Download size
- 56 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("roundRobinR")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.