as.reliabilitydiag {reliabilitydiag} | R Documentation |
Coerce to a reliability diagram
Description
Coerce numeric vectors, data frames, or anything else that can be coerced
by as.data.frame
to a data frame of prediction values, into
an object inheriting from the 'reliabilitydiag'
class.
Usage
as.reliabilitydiag(x, ...)
is.reliabilitydiag(x)
## S3 method for class 'reliabilitydiag'
as.reliabilitydiag(x, y = NULL, r = NULL, tol = sqrt(.Machine$double.eps), ...)
## Default S3 method:
as.reliabilitydiag(
x,
y = NULL,
r = NULL,
xtype = NULL,
xvalues = NULL,
.name_repair = "unique",
region.level = 0.9,
region.method = NULL,
region.position = "diagonal",
n.boot = 100,
...
)
## S3 method for class 'data.frame'
as.reliabilitydiag(
x,
y = NULL,
r = NULL,
xtype = NULL,
xvalues = NULL,
.name_repair = "unique",
region.level = 0.9,
region.method = NULL,
region.position = "diagonal",
n.boot = 100,
...
)
Arguments
x |
an R object with probability predictions taking values in [0, 1]; usually a numeric vector or a list/data.frame containing numeric vectors. |
... |
further arguments to be passed to or from methods. |
y |
a numeric vector of binary response values in {0, 1} to be predicted. |
r |
an object inheriting from the class |
tol |
accuracy when comparing |
xtype |
a string specifying whether the prediction values should be
treated as |
xvalues |
a numeric vector of possible prediction values;
values in |
.name_repair |
This argument is passed on as |
region.level |
a value in (0, 1) specifying the level at which consistency or confidence regions are calculated. |
region.method |
a string specifying whether |
region.position |
a string specifying whether consistency regions
around the |
n.boot |
the number of bootstrap samples when
|
Value
as.reliabilitydiag
returns a 'reliabilitydiag'
object.
is.reliabilitydiag
returns TRUE
if its argument is a
reliability diagram, that is, has "reliabilitydiag"
among its classes,
and FALSE
otherwise.