ghcm_sim_data {ghcm} | R Documentation |
GHCM simulated data
Description
A simulated dataset containing a combination of functional and scalar variables. Y_1 and Y_2 are scalar random variables and are both functions of Z. X, Z and W are functional, Z is a function of X and W is a function of Z.
Usage
ghcm_sim_data
ghcm_sim_data_irregular
Format
ghcm_sim_data
is a data frame with 500 rows of 5 variables:
- Y_1
Numeric vector.
- Y_2
Numeric vector.
- Z
500 x 101 matrix.
- X
500 x 101 matrix.
- W
500 x 101 matrix.
ghcm_sim_data_irregular
is a list with 5 elements:
- Y_1
Numeric vector.
- Y_2
Numeric vector.
- Z
500 x 101 matrix.
- X
A data frame with
- .obs
Integer between 1 and 500 indicating which curve the row corresponds to.
- .index
Function argument that the curve is evaluated at.
- .value
Value of the function.
- W
A data frame with
- .obs
Integer between 1 and 500 indicating which curve the row corresponds to.
- .index
Function argument that the curve is evaluated at.
- .value
Value of the function.
Details
In ghcm_sim_data
the functional variables each consists of 101 observations on
an equidistant grid on [0, 1].
In ghcm_sim_data_irregular
the functional variables X and W are instead only observed on
a subsample of the original equidistant grid.
Source
The generation script can be found in the data-raw
folder of
the package.