spfda_simulate: Generates toy example data

View source: R/simulate.R

spfda_simulateR Documentation

Generates toy example data

Description

Synthesized functional signals with heterogeneous error. The underlying three coefficients correspond to 'dense', 'global sparse', and 'local sparse' functions. See \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/biom.13684")} for detailed configurations.

Usage

spfda_simulate(n = 1000, n_timepoints = 100, err = 1, scale = c(1, 1, 1))

Arguments

n

Total number of observations

n_timepoints

Total number of time points

err

Error magnitude

scale

the scale of coefficients length of 1 or 3.

Value

A list of data generated: X is scalar predictor, Y is functional response.


spfda documentation built on June 8, 2025, 11:35 a.m.

Related to spfda_simulate in spfda...