DyadRatios: Dyad Ratios Algorithm for Latent Variable Estimation

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.

Version: 2.0
Depends: R (≥ 4.1.0)
Imports: Rcpp (≥ 1.0.0)
LinkingTo: Rcpp
Suggests: testthat (≥ 3.0.0), ggplot2, knitr, rmarkdown, dplyr, lubridate, rio, tidyr
Published: 2026-05-09
DOI: 10.32614/CRAN.package.DyadRatios
Author: James Stimson [aut] (Original C++ implementation), Dave Armstrong [cre, aut]
Maintainer: Dave Armstrong <davearmstrong.ps at gmail.com>
License: GPL-3
NeedsCompilation: yes
CRAN checks: DyadRatios results

Documentation:

Reference manual: DyadRatios.html , DyadRatios.pdf
Vignettes: Documentation for the Dyad Ratios Algorithm (source, R code)

Downloads:

Package source: DyadRatios_2.0.tar.gz
Windows binaries: r-devel: DyadRatios_1.4.zip, r-release: DyadRatios_1.4.zip, r-oldrel: DyadRatios_1.4.zip
macOS binaries: r-release (arm64): DyadRatios_1.4.tgz, r-oldrel (arm64): DyadRatios_1.4.tgz, r-release (x86_64): DyadRatios_2.0.tgz, r-oldrel (x86_64): DyadRatios_2.0.tgz
Old sources: DyadRatios archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=DyadRatios to link to this page.