Skip to content

RJafroc

2.1.2

Artificial Intelligence Systems and Observer Performance

0packages depend
4.7Kdownloads / year
75.7%test coverage
0/13checks pass

Overview

About
Maintained by Dev ChakrabortyFirst published 2015-04-2414 releasesCRAN page ↗

Analyzing the performance of artificial intelligence (AI) systems/algorithms characterized by a 'search-and-report' strategy. Historically observer performance has dealt with measuring radiologists' performances in search tasks, e.g., searching for lesions in medical images and reporting them, but the implicit location information has been ignored. The implemented methods apply to analyzing the absolute and relative performances of AI systems, comparing AI performance to a group of human readers or optimizing the reporting threshold of an AI system. In addition to performing historical receiver operating receiver operating characteristic (ROC) analysis (localization information ignored), the software also performs free-response receiver operating characteristic (FROC) analysis, where lesion localization information is used. A book using the software has been published: Chakraborty DP: Observer Performance Methods for Diagnostic Imaging - Foundations, Modeling, and Applications with R-Based Examples, Taylor-Francis LLC; 2017: https://www.routledge.com/Observer-Performance-Methods-for-Diagnostic-Imaging-Foundations-Modeling/Chakraborty/p/book/9781482214840. Online updates to this book, which use the software, are at https://dpc10ster.github.io/RJafrocQuickStart/, https://dpc10ster.github.io/RJafrocRocBook/ and at https://dpc10ster.github.io/RJafrocFrocBook/. Supported data collection paradigms are the ROC, FROC and the location ROC (LROC). ROC data consists of single ratings per images, where a rating is the perceived confidence level that the image is that of a diseased patient. An ROC curve is a plot of true positive fraction vs. false positive fraction. FROC data consists of a variable number (zero or more) of mark-rating pairs per image, where a mark is the location of a reported suspicious region and the rating is the confidence level that it is a real lesion. LROC data consists of a rating and a location of the most suspicious region, for every image. Four models of observer performance, and curve-fitting software, are implemented: the binormal model (BM), the contaminated binormal model (CBM), the correlated contaminated binormal model (CORCBM), and the radiological search model (RSM). Unlike the binormal model, CBM, CORCBM and RSM predict 'proper' ROC curves that do not inappropriately cross the chance diagonal. Additionally, RSM parameters are related to search performance (not measured in conventional ROC analysis) and classification performance. Search performance refers to finding lesions, i.e., true positives, while simultaneously not finding false positive locations. Classification performance measures the ability to distinguish between true and false positive locations. Knowing these separate performances allows principled optimization of reader or AI system performance. This package supersedes Windows JAFROC (jackknife alternative FROC) software V4.2.1, https://github.com/dpc10ster/WindowsJafroc. Package functions are organized as follows. Data file related function names are preceded by 'Df', curve fitting functions by 'Fit', included data sets by 'dataset', plotting functions by 'Plot', significance testing functions by 'St', sample size related functions by 'Ss', data simulation functions by 'Simulate' and utility functions by 'Util'. Implemented are figures of merit (FOMs) for quantifying performance and functions for visualizing empirical or fitted operating characteristics: e.g., ROC, FROC, alternative FROC (AFROC) and weighted AFROC (wAFROC) curves. For fully crossed study designs significance testing of reader-averaged FOM differences between modalities is implemented via either Dorfman-Berbaum-Metz or the Obuchowski-Rockette methods. Also implemented is single treatment analysis, which allows comparison of performance of a group of radiologists to a specified value, or comparison of AI to a group of radiologists interpreting the same cases. Crossed-modality analysis is implemented wherein there are two crossed treatment factors and the aim is to determined performance in each treatment factor averaged over all levels of the second factor. Sample size estimation tools are provided for ROC and FROC studies; these use estimates of the relevant variances from a pilot study to predict required numbers of readers and cases in a pivotal study to achieve the desired power. Utility and data file manipulation functions allow data to be read in any of the currently used input formats, including Excel, and the results of the analysis can be viewed in text or Excel output files. The methods are illustrated with several included datasets from the author's collaborations. This update includes improvements to the code, some as a result of user-reported bugs and new feature requests, and others discovered during ongoing testing and code simplification.

Install

Health

CRAN checks
13NOTE
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
  • NOTE r-oldrel-macos-arm64
  • NOTE r-oldrel-macos-x86_64
  • NOTE r-oldrel-windows-x86_64
  • NOTE r-patched-linux-x86_64
  • NOTE r-release-linux-x86_64
  • NOTE r-release-macos-arm64
  • NOTE r-release-macos-x86_64
  • NOTE r-release-windows-x86_64
Slowest check: 11.4 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.63
75.7%
Coverage · measured lines
100%
Documentation · exports
13
Dependencies · direct
Check history
  • NOTE2026-04-22
    0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    0 OK · 13 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
88%
Documented parameters
100%
Return-value docs
97%
References docs
51%

Downloads

4.7K
CRAN downloads in the past year
Rank #10,909 · ~13/day · ~392/mo
Daily download trend is not available in this view yet.
33330 days
98390 days
4.7K1 year
Compare downloads with other packages →
Also on403 r2u33 autocran

Repository

Repository
19Stars
8Forks
0Open issues
0Open PRs
7Releases
1,106Commits
3Contributors
artificial-intelligence-algorithmscomputer-aided-diagnosisroc-analysisfroc-analysistarget-localizationtarget-classificationai-optimizationcran
1,106 commits · Last activity 2025-04-20

Stars over time

2024-07-21 · 182026-07-07 · 19

Repository practices

Upstream repositoryBeta

3 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/dpc10ster/rjafroc on 2026-07-19.

Continuous integration (1)
GitHub Actions
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (3)
Maintainer (1)
Maintainer, Author, Copyright holder
Authors (2)
Maintainer, Author, Copyright holder
Contributors (1)
Contributor · added in 2.0.1
Copyright holders (1)
Maintainer, Author, Copyright holder
Listed in earlier versions (3)
no longer listed · 1.0.0 to 1.3.2
no longer listed · 1.0.2 to 1.3.2
no longer listed · 1.2.0 to 1.3.2
Package Timeline

14 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 2.1.2Latest
    2022-11-08 · current release · diff ↗
  • 2.1.1
    2022-08-12 · diff ↗
  • 2.1.0
    2022-07-24 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 2.0.1
    2020-12-15 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.3.2
    2020-03-06 · diff ↗
  • 1.3.1
    2020-01-14 · diff ↗
  • 1.2.0
    2019-07-31 · diff ↗
  • unarchivedReturned to CRAN
    2019-07-31
  • R
    R 3.6.0 released · 2019-04-26
Show 12 earlier events
  • archivedRemoved from CRAN
    2019-01-17
    installation errors were not corrected With C++11 on Solaris, as needed for R-devel
  • 1.1.0
    2018-11-14 · diff ↗
  • 1.0.2
    2018-05-31 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.0.1
    2018-02-18 · diff ↗
  • 1.0.0
    2018-02-04 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 0.1.1
    2015-08-14 · diff ↗
  • 0.1.0
    2015-07-30 · diff ↗
  • 0.0.1
    2015-04-24
  • R
    R 3.2.0 released · 2015-04-16

Package metadata

First published
2015-04-24
Total releases
14 / 11 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Bundled data
124 KB / 23 files
Download size
3.6 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →