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.
as.reliabilitydiag(x, ...)
is.reliabilitydiag(x)
# S3 method for reliabilitydiag
as.reliabilitydiag(x, y = NULL, r = NULL, tol = sqrt(.Machine$double.eps), ...)
# S3 method for default
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 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,
...
)
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.
a numeric vector of binary response values in {0, 1} to be predicted.
an object inheriting from the class 'reliabilitydiag'
;
alternative to y
.
accuracy when comparing y
in 'reliabilitydiag'
objects.
a string specifying whether the prediction values should be
treated as "continuous"
or "discrete"
.
a numeric vector of possible prediction values;
values in x
are rounded to the nearest value in xvalues
and
xtype
is set to "discrete"
.
This argument is passed on as repair
to
vec_as_names
. See there for more details.
a value in (0, 1) specifying the level at which consistency or confidence regions are calculated.
a string specifying whether "resampling"
,
"continuous_asymptotics"
, or "discrete_asymptotics"
are used
to calculate consistency/confidence regions.
a string specifying whether consistency regions
around the "diagonal"
or confidence regions around the
"estimate"
are calculated.
the number of bootstrap samples when
region.method == "resampling"
.
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.