**Deprecated**
`pffrSim()` was renamed to [pffr_simulate()] for consistency with the package naming conventions.
pffrSim(
formula = NULL,
scenario = NULL,
n = 100,
nxgrid = 40,
nygrid = 60,
yind = NULL,
xind = NULL,
data = NULL,
effects = list(),
intercept = "beta",
SNR = 10,
family = gaussian(),
propmissing = 0,
limits = NULL,
seed = NULL,
wiggliness = 1,
k_truth = list()
)Same as pffr_simulate.
A formula specifying the model structure (e.g.,
Y ~ ff(X1) + xlin). If provided, the scenario argument is
ignored.
Deprecated. Character string or vector specifying
predefined scenarios. Use the formula argument instead.
Number of observations.
Number of evaluation points for functional covariates.
Ignored if xind is provided.
Number of evaluation points for the functional response.
Ignored if yind is provided.
Numeric vector of evaluation points for the response.
Defaults to seq(0, 1, length.out = nygrid).
Numeric vector of evaluation points for functional covariates.
Defaults to seq(0, 1, length.out = nxgrid).
Optional data frame with pre-generated covariates.
Named list mapping term labels to effect specifications. Each entry can be a preset name (e.g., "cosine"), a function, or a numeric value. See Details.
Intercept specification: preset name ("beta", "constant",
"sine", "zero"), a function of t, or a numeric value.
Signal-to-noise ratio: var(eta) / var(epsilon).
A family object for the response distribution. Defaults to
gaussian().
Proportion of missing data in the response (0 to 1).
A function defining integration limits for ff() terms,
e.g., function(s, t) s < t.
Optional random seed for reproducibility.
Controls smoothness for the "random" preset (default: 1). Higher values produce more wiggly truth functions. Typical range: 0.001 (very smooth) to 10 (very wiggly).
Named list of basis dimensions for random truth generation.
Defaults: list(ff_s = 8, ff_t = 8, smooth_z = 8, smooth_t = 8,
linear = 8, intercept = 8, concurrent = 8).