IntervalData {IntervalQuestionStat}R Documentation

Create an IntervalData object

Description

For convenience, IntervalData objects or instances may be created with this function.

Usage

IntervalData(a1, a2, type = 1)

Arguments

a1

A single real number specifying either the infimum or either the mid-point of the interval stored as a unique numeric value.

a2

A single real number specifying either the supremum or either the spread of the interval stored as a unique numeric value.

type

A single real number specifying the characterization that is being used stored as a unique numeric value. Only two options are allowed:

  • 1: The inf/sup-characterization is used (default).

  • 2: The mid/spr-characterization is used.

Value

This function returns the created IntervalData object.

Author(s)

José García-García garciagarjose@uniovi.es

See Also

For other interval-valued data definition use IntervalList() and IntervalMatrix() functions.

Examples

## The following code generates the same interval through
## both inf/sup and mid/spr characterizations, respectively.
## In particular, interval [0, 2] = [1 -+ 1] is defined.
i1 <- IntervalData(a1 = 0, a2 = 2, type = 1); i1
i2 <- IntervalData(a1 = 1, a2 = 1, type = 2); i2

[Package IntervalQuestionStat version 0.2.0 Index]