Df2RJafrocDataset.Rd
Converts ratings arrays, ROC or FROC, but not LROC, to an RJafroc dataset, thereby allowing the user to leverage the file I/O, plotting and analyses capabilities of RJafroc.
Df2RJafrocDataset(NL, LL, InputIsCountsTable = FALSE, ...)
Non-lesion localizations array (or FP array for ROC data).
Lesion localizations array (or TP array for ROC data).
If TRUE
, the NL
and LL
arrays
are rating-counts tables, with common lengths equal to the number of
ratings R
, if FALSE
, the default, these are arrays of lengths
K1
, the number of non-diseased cases, and K2
, the number of
diseased cases, respectively.
Other elements of RJafroc dataset that may, depending on the
context, need to be specified. perCase
must be specified if
an FROC dataset is to be returned. It is a K2
-length array
specifying the numbers of lesions in each diseased case in the dataset.
A dataset with the structure described in
RJafroc-package
.
The function "senses" the data type (ROC or FROC) from the the
absence or presence of perCase
.
ROC data can be NL[1:K1]
and LL[1:K2]
or NL[1:I,1:J,1:K1]
and LL[1:I,1:J,1:K2]
.
FROC data can be NL[1:K1,1:maxNL]
and LL[1:K2, 1:maxLL]
or
NL[1:I,1:J,1:K1,1:maxNL]
and LL[1:I,1:J,1:K2,1:maxLL]
.
Here maxNL/maxLL
= maximum numbers of NLs/LLs, per case, over entire
dataset. Equal weights are assigned to every lesion (FROC data).
Consecutive characters/integers starting with "1" are assigned to
IDs
, modalityID
and readerID
.