IntervalData {IntervalQuestionStat} | R Documentation |
IntervalData
objectFor convenience, IntervalData
objects or instances
may be created with this function.
IntervalData(a1, a2, type = 1)
a1 |
A single real number specifying either the infimum or either
the mid-point of the interval stored as a unique |
a2 |
A single real number specifying either the supremum or either
the spread of the interval stored as a unique |
type |
A single real number specifying the characterization that
is being used stored as a unique
|
This function returns the created IntervalData
object.
José García-García garciagarjose@uniovi.es
For other interval-valued data definition use IntervalList()
and IntervalMatrix()
functions.
## 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