data_sim_mfd: Simulate multivariate functional data
Description
Simulate random coefficients and create a multivariate functional data
object of class mfd
.
It is mainly for internal use, to check that the package functions
work.
Usage
data_sim_mfd(nobs = 5, nbasis = 5, nvar = 2, seed)
Value
A simulated object of class mfd
.
Arguments
- nobs
Number of functional observations to be simulated.
- nbasis
Number of basis functions.
- nvar
Number of functional covariates.
- seed
Deprecated: use set.seed()
before calling
the function for reproducibility.
Examples
Run this codelibrary(funcharts)
data_sim_mfd()
Run the code above in your browser using DataLab