yuima.data-class {yuima} | R Documentation |
Class "yuima.data" for the data slot of a "yuima" class object
Description
The yuima.data-class
is a class of the yuima package used to store
the data which are hold in the slot data
of an object of
the yuima-class
.
Objects from this class contain either true data or simulated data.
Details
Objects in this class are created or initialized using the
methods new
or initialize
or via the function setData
.
The preferred way to construct an object in this class is to use the function
setData
.
Objects in this class are used to store
the data which are hold in the slot data
of an object of
the yuima-class
.
Objects in this class contain two slots described here.
original.data
:The slot
original.data
contains, as the name suggests, a copy of the original data passed by the user to methodsnew
orinitialize
or to the functionsetData
. It is intended for backup purposes.zoo.data
:When a new object of this class is created or initialized using the
original.data
, the package tries to convertoriginal.data
into an object of classzoo
. Once coerced tozoo
, the data are stored in the slotzoo.data
.If the conversion fails, the initialization or creation of the object fails.
Internally, the yuima package stores and operates on
zoo
-type objects.
If data are obtained by simulation, the original.data
slot
is usually empty.
Slots
original.data
:The original data.
zoo.data
:A list of
zoo
format data.
Methods
- new
signature(x = "yuima.data", original.data)
: the function makes a copy of the prototype object from the class definition ofyuima.data-class
, then calls theinitialize
method passing as arguments the newly created object and theoriginal.data
.- initialize
signature(x = "yuima.data", original.data)
: makes a copy oforiginal.data
into the slotoriginal.data
ofx
and tries to coerceoriginal.data
into an object of classzoo
. The result is put in the slotzoo.data
ofx
. If coercion fails, theintialize
method fails as well.- get.zoo.data
signature(x = "yuima.data")
: returns the content of the slotzoo.data
ofx
.- plot
signature(x = "yuima.data", ...)
: callsplot
from thezoo
package with argumentx@zoo.data
. Additional arguments...
are passed as is to theplot
function.- dim
signature(x = "yuima.data")
: callsdim
from thezoo
package with argumentx@zoo.data
.- length
signature(x = "yuima.data")
: callslength
from thezoo
package with argumentx@zoo.data
.- cce
signature(x = "yuima.data")
: calculates asyncronous covariance estimator on the data contained inx@zoo.data
. For more details seecce
.- llag
signature(x = "yuima.data")
: calculates lead lag estimate on the data contained inx@zoo.data
. For more details seellag
.- cbind.yuima
signature(x = "yuima.data")
: bind yuima.data object.
Author(s)
The YUIMA Project Team