R Observatory
Search

Generalizability Theory for LLM Subjective Tasks

install.packages("Gtheory4LLM")
Test coverage, method
85%of lines run by tests

Studies the reliability and generalizability of subjective judgments produced by large language models (LLMs), including annotation, rating, and structured LLM-as-a-judge tasks.

Full description

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>.

Maintainer
Jin Liu
Licence
GPL-3
Latest release
11 Oct 2026
First release
4 Oct 2026

Compare with another package

More details
Releases
2
Needs compilation
No
Needs R
>= 4.5.0
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' entry:

citation("Gtheory4LLM")

The package provides a citation file, so citation() returns the authors' own entry.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for Gtheory4LLM version 0.5.0 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    0.5.0
    Time taken
    529 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    0.5.0
    Time taken
    358 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    0.5.0
    Time taken
    355 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    0.5.0
    Time taken
    366 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    0.5.0
    Time taken
    512 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    0.5.0
    Time taken
    146 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    0.5.0
    Time taken
    585 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    0.5.0
    Time taken
    689 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    0.5.0
    Time taken
    505 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    0.5.0
    Time taken
    502 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    0.5.0
    Time taken
    136 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    0.5.0
    Time taken
    742 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    0.5.0
    Time taken
    492 s
  • 13 OK

Check results on CRAN

Total downloads in the last 30 days
405It comes from CRAN alone.

CRAN rank

8,308 of 26,530

CRAN

405 downloads in the last 30 days

Rank
8,308 of 26,530

It is in the total. Take it out

Over time

Compare downloads

Needs
6
Dependent packages
0
Suggested by
0
Needs (6)
Installing it adds
12 packages, 27.5 MB of source
Of those, need compilation
10
Optional extras (4)
Functions
222
Public exports
21
Lines of R code
8,266
Median complexity
6
Functions (222)
Size and composition

Lines by kind (16,983)

KindLinesShare
R code8,26649%
Tests5,78134%
Documentation2,40514%
Guides5313%

Lines by language

LanguageLinesShare
R14,04783%
Rd2,40514%
Vignettes5313%

Languages are counted from file extensions.

Files
109
R functions
222
Object systems
S3: 25 methods
Complexity
Median
6
Mean
11.58
Highest
234
Median lines per function
15
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
222
Calls
359
Unconnected
13
Groups
1
Growth (2 releases)
Total lines by release
10,646 on 4 Oct 202616,983 on 11 Oct 2026
Release changes

The tests ran and coverage was measured.

Lines run by tests
85.2%
Expressions run by tests
83.7%
Test cases
156
Exports named in tests
100%
Coverage by file (23)
Coverage run
Lines counted
6,050
Lines the tests ran
5,155
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat, tinytest
Test cases
156
Lines of tests
5,781
Test lines per line of code
0.7
Exports documented
100%
Arguments documented
97.4%
Return value documented
100%
Help pages with examples
92.3%
Examples run in checks
91.7%
Guides (2)
Other documentation
README
Yes, 2,653 words
Release notes file
Yes
Help pages
26
Lines of documentation
2,405

9 datasets, 0 can be loaded by name

DatasetSizeColumns
drug_reviewLLM Drug-Review Sentiment and Four Aspect Annotationslength 4
drug_review_4aspectLLM Drug-Review Sentiment and Four Aspect Annotationslength 4
hate_speechLLM Hate-Speech Annotations of HateXplain Textslength 4
manifest8 × 9name, resource, data_kind, source_file, source_md5, source_url and 3 more
mental_health_3LLLM Mental-Health Text Annotations in Five Outcome Setslength 4
mental_health_3groupLLM Mental-Health Text Annotations in Five Outcome Setslength 4
mental_health_6flagLLM Mental-Health Text Annotations in Five Outcome Setslength 4
mental_health_7LLLM Mental-Health Text Annotations in Five Outcome Setslength 4
mental_health_nominalLLM Mental-Health Text Annotations in Five Outcome Setslength 4
  • Jin Liu

    Maintainer since 0.2.0 (2026), author, copyright holder

Veronica0206 / gtheory4llm on github.com

Stars
0
Forks
0
Open issues
3
Last commit
27 Oct 2026
Activity
Commits
179
Open pull requests
0
Tagged releases
7
Latest tagged release
v0.6.0, 21 Oct 2026
In development
Default branch at 1.0.0.9000, ahead of CRAN 0.5.0 (checked 2026-10-25)
Issues closed in
20 days (median)
Pull requests closed in
0 days (median)
Pull requests merged
95%
Created
13 Sep 2026
Licence file reads as
GPL-3.0
Development practices (7)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, and on R-devel
Governance and communityContributing guide, Security policy, CODEOWNERS
Reproducibility and dev environmentrenv
CRAN release processcran-comments.md

Method, repository practices

Across Veronica0206

R releases
  • On CRAN
  • Facing archival
  • Release
VersionReleasedREvents
0.5.0 current11 Oct 20264.6.1Fix due 26 Oct 2026
The checks were fixed and the deadline was lifted.
0.2.04 Oct 20264.6.1
Release notes (0.5.0)

<!-- release-identity:start -->

Source version: 0.5.0.

For versioned archives, manuals and publication status, see the

repository manifest

and GitHub releases.

These repository records are excluded from the package archive; this source

version does not assert that a corresponding release has been published.

<!-- release-identity:end -->

This version adds bounded study-planning tools. Historical release assets and

the numerical acceptance rules are unchanged.

  • gt_batch_reliability() and gt_batch_dstudy() project item-score, named contrast and aggregate error under a fitted equal fixed Gaussian batching layout. Targets are conditional on that layout; no new-batch-size effect or universal batch-adjusted G is inferred.
  • gt_plan() enumerates supplied allocation grids and ranks them using dated, user-supplied cost assumptions, constraints and point or available lower-bound targets. It retains infeasible candidates, Pareto options and baseline marginal benefits without changing the declared score universe.
  • gt_simulate() generates balanced Gaussian studies and gt_pilot_plan() refits prospective pilot designs, retaining all attempts, numerical refusals, interval availability and Monte Carlo uncertainty. These are model-based design simulations, not calibrated bootstrap intervals or coverage guarantees.
  • Batch D-study data frames retain allocation counts and essential interpretation fields in ordinary columns, so CSV exports remain interpretable without R attributes. Pilot replicate ledgers retain numerical acceptance-failure codes and the selected refit attempt without retaining whole fit objects.
  • Batch projections preserve distinct numeric item identifiers, including large adjacent values that have the same default printed representation. Use the returned layout$item keys to name contrast and aggregate weights. This corrects a false refusal after an otherwise valid fit; covariance estimation and projection arithmetic are unchanged.