Package: MEMWAS
Type: Package
Title: Mixed-Effects Models with Autocorrelation Structures
Version: 0.9.3
Date: 2026-08-04
Authors@R: c(
    person("Enoch", "Kang", role = c("aut", "cre", "trl"),
           email = "y.enoch.kang@gmail.com",
           comment = c(ORCID = "0000-0002-4903-942X"))
    )
Description: Fits longitudinal generalized mixed-effects models through the
    'MEMWAS' interface and a registered 'C++' numerical backend. Supported
    serial covariance structures include first-order autoregressive (AR(1)),
    exponential or Ornstein-Uhlenbeck, higher-order autoregressive (AR(p)),
    first-order autoregressive moving-average (ARMA(1,1)), compound symmetry,
    Toeplitz, and unstructured covariance. Serial processes can be unified or
    attached independently to numeric predictor loadings. Candidate temporal
    structures
    can be ranked on a common sample by primary-cluster grouped
    cross-validation, the Akaike information criterion, the Bayesian
    information criterion, or log-likelihood. Clustered, crossed, and
    nested random intercepts and slopes are assembled jointly with diagonal or
    term-specific unstructured covariance. Available approximation methods
    include Laplace, saddlepoint likelihood with latent Laplace integration,
    adaptive Gaussian quadrature, full-covariance Gaussian variational
    inference, and penalized quasi-likelihood. Subject-grouped tuning requires
    every validation fold to succeed and supports fold-local nonlinear
    screening, bootstrap inference, prediction inference, and effective degrees
    of freedom for penalized information criteria. The mixed-effects framework
    follows Laird and Ware (1982) <doi:10.2307/2529876>; generalized-model
    approximations follow Breslow and Clayton (1993)
    <doi:10.1080/01621459.1993.10594284>; and serial covariance formulations
    follow Pinheiro and Bates (2000) <doi:10.1007/b98882>. The run-time
    fitting interface imports no third-party 'R' packages.
License: GPL (>= 3)
Depends: R (>= 4.1.0)
Imports: stats, utils
Config/roxygen2/version: 8.0.0
Suggests: knitr, rmarkdown, testthat (>= 3.0.0)
VignetteBuilder: knitr, rmarkdown
Config/testthat/edition: 3
NeedsCompilation: yes
Language: en-US
Encoding: UTF-8
Packaged: 2026-08-04 03:02:10 UTC; KYN
Author: Enoch Kang [aut, cre, trl] (ORCID:
    <https://orcid.org/0000-0002-4903-942X>)
Maintainer: Enoch Kang <y.enoch.kang@gmail.com>
Repository: CRAN
Date/Publication: 2026-08-08 14:00:02 UTC
Built: R 4.5.3; x86_64-w64-mingw32; 2026-08-17 01:05:27 UTC; windows
Archs: x64
