Skip to content

roundRobinR

2.0.0Package record

Manipulate and Analyze Round Robin Dyadic Data

0packages depend
2Kdownloads / year
32.7%test coverage
13/13flavors OK

Overview

About

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.

Changes in 2.0.0

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 plus actor_id/group_id and builds the required actor/partner dummy matrices internally via create_cp_dummies(), then fits the model with cpsrm_run().
  • Added cpsrm_run(), the full-control fitting function underneath cpsrm(), together with create_cp_dummies(), print.cpsrm(), and summary.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), whenever weight_partners = FALSE and the number of partners per row is constant.
  • ?cpsrm_run documents (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

CRAN checks
13OK
Slowest check: 2.1 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-08
  • ERROR12 OK, 1 ERROR2026-06-07
  • OK8 OK2026-04-22
Advisories

none known

Documentation

In release 2.0.0
READMENoVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 2.0.0Citation fileNoWebsitenot declared in DESCRIPTION
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

2K
CRAN downloads in the past year
Rank #14,635 · ~5/day · ~165/mo
Daily download trend is not available in this view yet.
37630 days
80490 days
2K1 year
Compare downloads with other packages →
Also on44 r2u3 autocran

Repository

1Stars
0Forks
0Open issues
0Open PRs
0Releases
20Commits
2Commit identities
20 commits · Last activity 2026-09-17 · 0% stars, 30d
Responsiveness
How these are sampled
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

2024-04-02 · 12026-07-07 · 1
PracticesBeta

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.

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing roundRobinR adds 1 package (1 with compiled code, 5.7 MB of source tarballs). Heaviest: data.table 5.7 MB.

Depends (1)
R >= 3.5.0
Imports (4)
data.tableMatrixnlmestats
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 1.0.1 (2026), Copyright holder
Releases (2)

Pick two releases to compare their code metrics.

  • 2.0.0Latest
    record
    2026-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
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.1
    record
    2026-04-21
  • R
    R 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")
Knight, A. (2026). roundRobinR: Manipulate and Analyze Round Robin Dyadic Data (Version 2.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for roundRobinR version 2.0.0 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy