data_sim_mfd function

Simulate multivariate functional data

Simulate multivariate functional data

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.

data_sim_mfd(nobs = 5, nbasis = 5, nvar = 2, seed)

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.

Returns

A simulated object of class mfd.

Examples

library(funcharts) data_sim_mfd()
  • Maintainer: Christian Capezza
  • License: GPL-3
  • Last published: 2025-03-17