Learn R Programming

refund (version 0.1-40)

pffrSim_legacy: Legacy pffr_simulate implementation

Description

Internal function preserving the original pffr_simulate behavior for backward compatibility. This is called when the deprecated scenario argument is used.

Usage

pffrSim_legacy(
  scenario = "all",
  n = 100,
  nxgrid = 40,
  nygrid = 60,
  SNR = 10,
  propmissing = 0,
  limits = NULL
)

Arguments

scenario

Deprecated. Character string or vector specifying predefined scenarios. Use the formula argument instead.

n

Number of observations.

nxgrid

Number of evaluation points for functional covariates. Ignored if xind is provided.

nygrid

Number of evaluation points for the functional response. Ignored if yind is provided.

SNR

Signal-to-noise ratio: var(eta) / var(epsilon).

propmissing

Proportion of missing data in the response (0 to 1).

limits

A function defining integration limits for ff() terms, e.g., function(s, t) s < t.