data_sim_mfd: Simulate multivariate functional data

View source: R/00_mfd.R

data_sim_mfdR Documentation

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)

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.

Value

A simulated object of class mfd.

Examples

library(funcharts)
data_sim_mfd()

funcharts documentation built on Sept. 8, 2023, 6:04 p.m.