Skip to content

Releases

Arwad 0.2.0: PLS-SEM as the Primer uses it

Choose a tag to compare

@bashar-al-agha bashar-al-agha released this 24 Nov 10:24

Arwad keeps R's syntax and its packages, and compiles numerical work to native code through the Goose language. This second citable release is the arwad R package.

# install.packages("remotes")
remotes::install_github("bashar-al-agha/arwad", subdir = "r")

Compiling needs Goose v2026.3 and the C compiler R uses for packages (Rtools on Windows); without them every function still runs, in GNU R. Guide: langwi.com/get-started.

New since 0.1.0

The PLS-SEM analyses the PLS-SEM Primer asks for, each bit-identical to seminr or seminrExtras on the models in the test set (benchmark report):

  • Consistent PLS for reflective() constructs in aw_boot_pls(), matched to seminr 2.6.0 and 2.5.0: 10,000 resamples of the ECSI model with all seven constructs reflective took 20.0 s on four cores against 169.8 s for seminr (8.5× faster).
  • BCa confidence intervals: aw_pls_ci(type = "bca"), with the jackknife run by the compiled engine (ADR-0007).
  • Moderation: two-stage interaction terms run natively; 10,000 resamples of the Primer's moderation model took 57.6 s on four cores against 390.1 s for seminr (6.8× faster).
  • PLSpredict: aw_predict_pls(), a drop-in replacement for seminr::predict_pls(). Ten folds and ten repetitions of the Primer's extended corporate reputation model took 0.48 s against 5.87 s (12.2× faster); leave-one-out was 7.0× faster (ADR-0008).
  • CVPAT and Q²predict: aw_assess_cvpat() and aw_assess_cvpat_compare(), drop-in replacements for seminrExtras::assess_cvpat() and seminrExtras::assess_cvpat_compare(), t-values and p-values included. With 2,000 bootstrap resamples on the same model, 1.18 s against 10.02 s (8.5× faster). aw_q2_predict() gives Q²predict.

Status

An early release: the API may still change. Timings come from one laptop (Intel Core i7-7600U) and GitHub's CI runners, and the report states their variation and the processor's state. Equivalence claims come from the test suite that runs on every commit on Linux (with OpenBLAS), macOS (arm64) and Windows, under AddressSanitizer, and against seminr 2.5.0. Design decisions are recorded in docs/adr and the plan in the roadmap. Full change history: r/NEWS.md.

Cite

Use GitHub's Cite this repository button (CITATION.cff) or the Zenodo DOI of this release.

Apache License 2.0 © 2026 Bashar Al Agha (ORCID 0009-0004-5178-2345); v0.1.0 remains available under the MIT licence. Goose is the work of Wouter van Oortmerssen and R the work of the R Core Team; Arwad builds on both and is affiliated with neither.

Arwad 0.1.0: first citable release

Choose a tag to compare

@bashar-al-agha bashar-al-agha released this 28 Oct 08:52

Arwad keeps R's syntax and its packages, and compiles numerical work to native code through the Goose language. This first citable release is the arwad R package.

# install.packages("remotes")
remotes::install_github("bashar-al-agha/arwad", subdir = "r")

Compiling needs Goose v2026.3 and the C compiler R uses for packages (Rtools on Windows); without them every function still runs, in GNU R. Guide: langwi.com/get-started.

What is in it

  • aw_compile() turns R functions written in a statistical subset (scalars, vectors and matrices, loops, R's own random-number streams, BLAS and LAPACK through R's own libraries) into native code; anything the native code does not model is re-run in GNU R. Results are bit-identical to GNU R across a 201-function corpus, checked on Linux, macOS (arm64) and Windows in every CI run and under AddressSanitizer. On the benchmark laptop, compiled loops ran 11–33× faster than R's byte code (report).
  • Statistical engines, each validated on at least 50 datasets (report):
    • aw_boot_ols(): case bootstrap of least-squares coefficients through R's own LINPACK QR, identical to R; 43.7× faster than an lm() loop.
    • aw_glm_fit() and aw_boot_glm(): binomial, Poisson and Gaussian models, identical to glm.fit(), warnings included; the bootstrap is 10.8× faster than a glm() loop.
    • aw_boot_pls(): a drop-in replacement for seminr::bootstrap_model() with Mode A and Mode B (formative) composites. Path coefficients, loadings, weights and total effects are bit-identical to seminr; HTMT agrees to within four units in the last place. 10,000 resamples of the ECSI model took 12.5 s on four cores against 241.4 s for seminr on the same cores (19.3× faster; 8.8× from a single core).
    • aw_pls_ci(): the bias-corrected percentile confidence intervals the PLS-SEM Primer recommends, for every coefficient and for specific indirect effects, from an Arwad or a seminr bootstrap (ADR-0007).

Status

An early release: the API may still change. Timings come from one laptop (Intel Core i7-7600U) and GitHub's CI runners, and the reports state their variation; equivalence claims come from the test suite that runs on every commit. Design decisions are recorded in docs/adr and the plan in the roadmap. Full change history: r/NEWS.md.

Cite

Use GitHub's Cite this repository button (CITATION.cff) or the Zenodo DOI of this release.

MIT licence © 2026 Bashar Al Agha (ORCID 0009-0004-5178-2345). Goose is the work of Wouter van Oortmerssen and R the work of the R Core Team; Arwad builds on both and is affiliated with neither.