Studies the reliability and generalizability of subjective judgments produced by large language models (LLMs), including annotation, rating, and structured LLM-as-a-judge tasks. Specifies evaluator, prompt, generation, and repeated-run facets through crossed or explicitly nested random sources with configurable item interactions. Fits univariate models, joint Gaussian models, and joint discrete models for binary, ordinal, and unordered categorical outcomes, with source-specific covariance. Gaussian models use exact balanced likelihood; discrete models use a dense first-order Laplace approximation with Gaussian latent random effects. Supported balanced decision studies compare evaluator, prompt, and replication allocations using observed Gaussian or explicitly requested latent binary and ordinal reliability, with random or fixed facets after Brennan (2001). Gaussian fits report asymptotic Wald standard errors for their variance components and delta-method intervals for the coefficients; discrete fits report point estimates only. Provides fixed-layout Gaussian batch projections, bounded cost-aware allocation comparisons, and Gaussian simulation-based pilot precision planning. Scalar nominal reliability and joint Gaussian-discrete fitting are not implemented. Includes three publicly archived LLM annotation datasets covering hate-speech, mental-health, and drug-review tasks. Discrete fitting is limited to small models; the preflight report describes supported designs and computational limits. Generalizability coefficients follow the variance-decomposition framework of Brennan (2001) <doi:10.1007/978-1-4757-3456-0>.
| Version: | 0.5.0 |
| Depends: | R (≥ 4.5.0) |
| Imports: | Matrix (≥ 1.6.0), OpenMx (≥ 2.22.11), graphics, methods, stats, utils |
| Suggests: | lme4, ordinal, knitr, rmarkdown |
| Published: | 2026-10-11 |
| DOI: | 10.32614/CRAN.package.Gtheory4LLM |
| Author: | Jin Liu [aut, cre, cph] |
| Maintainer: | Jin Liu <Veronica.Liu0206 at gmail.com> |
| BugReports: | https://github.com/Veronica0206/Gtheory4LLM/issues |
| License: | GPL-3 |
| URL: | https://github.com/Veronica0206/Gtheory4LLM |
| NeedsCompilation: | no |
| Citation: | Gtheory4LLM citation info |
| Materials: | README, NEWS |
| CRAN checks: | Gtheory4LLM results |
| Reference manual: | Gtheory4LLM.html , Gtheory4LLM.pdf |
| Vignettes: |
How many evaluators, prompts, and runs? (source, R code) Plan annotation effort, costs, and pilot precision (source, R code) |
| Package source: | Gtheory4LLM_0.5.0.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: Gtheory4LLM_0.2.0.zip |
| macOS binaries: | r-release (arm64): Gtheory4LLM_0.5.0.tgz, r-oldrel (arm64): Gtheory4LLM_0.5.0.tgz, r-release (x86_64): Gtheory4LLM_0.5.0.tgz, r-oldrel (x86_64): Gtheory4LLM_0.5.0.tgz |
| Old sources: | Gtheory4LLM archive |
Please use the canonical form https://CRAN.R-project.org/package=Gtheory4LLM to link to this page.