Skip to content

DyadRatios

2.1

Dyad Ratios Algorithm for Latent Variable Estimation

0packages depend
2.9Kdownloads / year
86.5%test coverage
13/13checks pass

Overview

About
Maintained by Dave ArmstrongFirst published 2025-09-305 releasesCRAN page ↗

Implements the Dyad Ratios algorithm for estimating latent variables from time-series survey data. The algorithm estimates a latent mood dimension (or two dimensions) from a set of issue opinion series. Supports annual, quarterly, monthly, and daily aggregation intervals, optional exponential smoothing, and up to two latent dimensions. Input data can be provided as a data frame or read from delimited text files. Based on Stimson's 'MCalc' C++ program. See Stimson (2018) doi:10.1177/0759106318761614 for more details.

Install

Health

CRAN checks
13OK
Slowest check: 2.2 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.23
86.5%
Coverage · measured lines
100%
Documentation · exports
1
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
22%

Downloads

2.9K
CRAN downloads in the past year
Rank #7,582 · ~8/day · ~242/mo
Daily download trend is not available in this view yet.
33230 days
1.4K90 days
2.9K1 year
Compare downloads with other packages →
Also on130 r2u28 autocran

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
Imports (1)
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 1,253 (45%)C++ 706 (25%)Rd 496 (18%)Vignettes 323 (12%)Other 5 (0%)
Code characteristics
Object systems
S34
Cyclomatic complexity
7.0 median / 20 max
Test cases
24 / 0.23 per code line

Test coverage

Line coverage

87%

Expression

87.6%

Tests / Examples

86.5% / 60% ex

Functions

26 3 exported

Complexity

7.5 avg / 20 max

Call network

26 nodes / 12 edges

Loading call graph…

Lowest coverage

26 functions
FunctionCycloCoverage
get_mood exp20%
plot.extract40%
.build_period_df268%
boot_dr exp1969%
.assign_period170%
plot.boot_dr781%

Datasets

Bundled datasets · 1
NameClassRows × ColsAlso ships in
jenningsdata.frame295 × 4

People & History

People (2)
Maintainer (1)
Maintainer, Author
Authors (2)
Maintainer, Author
Package Timeline

5 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 2.1Latest
    2026-05-12 · current release · diff ↗
  • 2.0
    2026-05-09 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.4
    2026-04-09 · diff ↗
  • 1.3
    2025-10-10 · diff ↗
  • 1.2
    2025-09-30
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-09-30
Total releases
5 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1.0
Bundled data
2.4 KB / 1 file
Download size
203 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →