Generate smooth random functions via B-spline basis for use in simulations.
generate_functional_covariate(
n,
xind,
type = "bspline",
bs_dim = NULL,
seed = NULL
)Numeric matrix (n x length(xind)) of functional covariate values.
Integer, number of observations (curves to generate).
Numeric vector of evaluation points for the functional covariate.
Character string specifying generation method. Currently only "bspline" is supported.
Integer, dimension of B-spline basis (default 7).
Optional integer seed for reproducibility within this call.