| 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.datacontains, as the name suggests, a copy of the original data passed by the user to methodsneworinitializeor 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.datainto 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
zooformat 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 theinitializemethod passing as arguments the newly created object and theoriginal.data.- initialize
signature(x = "yuima.data", original.data): makes a copy oforiginal.datainto the slotoriginal.dataofxand tries to coerceoriginal.datainto an object of classzoo. The result is put in the slotzoo.dataofx. If coercion fails, theintializemethod fails as well.- get.zoo.data
signature(x = "yuima.data"): returns the content of the slotzoo.dataofx.- plot
signature(x = "yuima.data", ...): callsplotfrom thezoopackage with argumentx@zoo.data. Additional arguments...are passed as is to theplotfunction.- dim
signature(x = "yuima.data"): callsdimfrom thezoopackage with argumentx@zoo.data.- length
signature(x = "yuima.data"): callslengthfrom thezoopackage 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