Internal function that generates simulated data based on a pffr formula.
pffrSim_formula(
formula,
n,
yind,
xind,
data = NULL,
effects = list(),
intercept = "beta",
SNR = 10,
family = gaussian(),
propmissing = 0,
limits = NULL,
wiggliness = 1,
k_truth = list()
)A data frame with simulated data and truth attributes.
A formula specifying the model structure.
Number of observations.
Numeric vector of y (response) evaluation points.
Numeric vector of x (functional covariate) evaluation points.
Optional data frame with pre-generated covariates.
Named list mapping term names to effect specifications. For concurrent terms, use list syntax: `list(Xc = list(type = "concurrent", effect = "sine"))`.
Intercept specification (preset name, function, or numeric).
Signal-to-noise ratio.
A family object for response distribution.
Proportion of missing values in response.
Optional limits function for ff terms.
Controls smoothness for "random" preset (default: 1).
Named list of basis dimensions for random truth generation.