Package: mixedbiastest
Type: Package
Title: Bias Diagnostic for Linear Mixed Models
Version: 1.1.0
Date: 2026-10-22
Authors@R: 
    person(given = "Andrew T.",
           family = "Karl",
           email = "akarl@asu.edu",
           role = c("cre", "aut"),
           comment = c(ORCID = "0000-0002-5933-8706"))
Maintainer: Andrew T. Karl <akarl@asu.edu>
Description: Provides a function to perform bias diagnostics on linear mixed models fitted with lmer() from the 'lme4' package. Compares an internal random-effects alignment diagnostic with a fitted permutation reference distribution, following Karl and Zimmerman (2021) <doi:10.1016/j.jspi.2020.06.004>. Conditional response-refit simulations separately record random-effects alignment and residual-weight contributions to estimation error. Karl and Zimmerman (2020) <doi:10.17632/tmynggddfm.1> provide R code for implementing the test using 'mvglmmRank' output. Development and review were assisted by 'GPT o1-preview', 'GPT 5 Pro', and 'GPT6 Astra'; the author is responsible for the code and its interpretation.
Depends: R (>= 3.5.0)
Imports: lme4, Matrix, ggplot2, rlang
Suggests: plm, lmerTest, testthat (>= 3.1.7)
License: GPL-3
Encoding: UTF-8
LazyData: true
Config/testthat/edition: 3
NeedsCompilation: no
Config/roxygen2/version: 8.0.0
Packaged: 2026-10-22 21:29:24 UTC; andre
Author: Andrew T. Karl [cre, aut] (ORCID:
    <https://orcid.org/0000-0002-5933-8706>)
Repository: CRAN
Date/Publication: 2026-10-22 23:40:08 UTC
