Package: rwig 0.3.0

Fangzhou Xie

rwig: Wasserstein Index Generation (WIG) Model

Efficient implementation of several Optimal Transport algorithms in Fangzhou Xie (2025) <doi:10.48550/arXiv.2504.08722> and the Wasserstein Index Generation (WIG) model in Fangzhou Xie (2020) <doi:10.1016/j.econlet.2019.108874>.

Authors:Fangzhou Xie [aut, cre, cph]

rwig_0.3.0.tar.gz
rwig_0.3.0.zip(r-4.7-x86_64)rwig_0.3.0.zip(r-4.7-arm64)rwig_0.3.0.zip(r-4.6-x86_64)rwig_0.3.0.zip(r-4.6-arm64)
rwig_0.3.0.tar.gz(r-4.7-arm64)rwig_0.3.0.tar.gz(r-4.7-x86_64)rwig_0.3.0.tar.gz(r-4.6-arm64)rwig_0.3.0.tar.gz(r-4.6-x86_64)
rwig_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
rwig/json (API)

# Install 'rwig' in R:
install.packages('rwig', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/fangzhou-xie/rwig/issues

Pkgdown/docs site:https://fangzhou-xie.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:
  • headlines - NYT headlines by economic policy uncertainty

On CRAN:

Conda:

openblascpp

4.36 score 17 scripts 469 downloads 8 exports 10 dependencies

Last updated from:bfa4fe98ab. Checks:10 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK427
linux-devel-x86_64OK360
source / vignettesOK448
linux-release-arm64OK432
linux-release-x86_64OK366
windows-devel-arm64OK255
windows-devel-x86_64OK157
windows-release-arm64OK240
windows-release-x86_64OK139
wasm-releaseOK170

Exports:barycentercheck_cudasinkhorntsvdwdlwdl_specswigwig_specs

Dependencies:cliISOcodesRcppRcppProgressrlangSnowballCstopwordsstringitokenizersword2vec

Multi-threading Support
BLAS threads | See Also | References

Last update: 2026-09-20
Started: 2026-04-21

WDL and WIG Model Specs
wig_control | wdl_control | tokenizer_control | word2vec_control | barycenter_control | optimizer_control | See Also | References

Last update: 2026-09-20
Started: 2026-04-21

Barycenter Algorithms
Difference from sinkhorn() | See Also | Reference

Last update: 2026-04-21
Started: 2026-04-21

Computation of the Gradients
See Also | References

Last update: 2026-04-21
Started: 2026-04-21

CUDA Acceleration

Last update: 2026-04-21
Started: 2026-04-21

Sinkhorn Algorithms
Get Started with Sinkhorn Algorithm | Vanilla, Log, and Auto Sinkhorn Algorithms | Gradient of Loss w.r.t. a | Other Control Parameters | Reference

Last update: 2026-04-21
Started: 2026-04-21

Truncated SVD
References

Last update: 2026-04-21
Started: 2026-04-21

WDL Model
See Also | References

Last update: 2026-04-21
Started: 2026-04-21

WIG Model
See Also | References

Last update: 2026-04-21
Started: 2026-04-21