Description Usage Arguments Value Note See Also
This function generates a data set to be used in the DSFM
function.
1 | DSFM2DData(y, x1 = NULL, x2 = NULL)
|
y |
a numeric list of matrix containing the response variables. Each matrix represents one date. |
x1 |
a numeric vector of the covariates x1. |
x2 |
a numeric vector of the covariates x2. |
DSFM2DData
returns a list, which belongs to the class
"DSFM2DData"
. The list contains the dates, the responses and
the covariates in four distinct columns.
The generic functions print
, summary
, and plot
are available for this class.
If the data set contains different covariates for each dates, the data
has to be formatted manually then inserted in the DSFM2DData
function to obtain an object of class DSFM2DData
.
The correct format is a four columns data.frame
containing a time
indicator as first columns, the responses in the second columns and the
coordinates of the two dimensions in the two remaining columns.
summary.DSFM2DData
, plot.DSFM2DData
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.