DyadRatios
2.1Dyad Ratios Algorithm for Latent Variable Estimation
Overview
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
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0812 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 22%
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
- 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
Call graph
Open call graph →Lowest coverage
26 functions| Function | Cyclo | Coverage |
|---|---|---|
| get_mood exp | 2 | 0% |
| plot.extract | 4 | 0% |
| .build_period_df | 2 | 68% |
| boot_dr exp | 19 | 69% |
| .assign_period | 1 | 70% |
| plot.boot_dr | 7 | 81% |
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| jennings | data.frame | 295 × 4 | – |
People & History
5 releases. Pick two to compare their code metrics. R releases are shown for context.
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