print.SensSpec | R Documentation |
SensSpec
objectsPrint the results for object of class SensSpec
.
## S3 method for class 'SensSpec'
print(x, ...)
x |
An object for class |
... |
Further arguments (currently not used). |
Print the results for object of class SensSpec
.
No return value, called for side effects.
SensSpec
, print
## Load example data
data(VanDyke)
## Return the first parts of an object
head(VanDyke)
## Extract unique modalities
unique(VanDyke$treatment)
## Extract Unique readers
unique(VanDyke$reader)
## Create binary test results (Y_ijk)
VanDyke$Y <- as.numeric(VanDyke$rating >= 3)
## Example usage of SensSpec function:
senspe_result1 <- SensSpec(data = VanDyke, Modality = treatment,
Reader = reader, Case = case,
D = truth, Y = Y, percentage = FALSE, digits = 3)
print(senspe_result1)
# Report results as percentage points
senspe_result2 <- SensSpec(data = VanDyke, Modality = treatment,
Reader = reader, Case = case,
D = truth, Y = Y, percentage = TRUE, digits = 1)
print(senspe_result2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.