pffrSim: Simulate example data for pffr
Description
Simulates example data for pffr. Scenario 1
generates data from a simple univariate model $Y_i(t)
= \mu(t) +\int X_i(s)\beta(s,t)ds + \epsilon_i(t)$.
Scenario 2 generates data from a complex multivariate
model $Y_i(t) = \mu(t) + \int X_{1i}(s)\beta_1(s,t)ds
+ \int X_{2i}(s)\beta_2(s,t)ds + x_3 \beta_3(t) + f(x_4,
x_5) + f(x_6, t) + \beta_4 x_7 + \epsilon_i(t)$.Usage
pffrSim(scenario = 1, n = 100, nxgrid = 40, nygrid = 60,
SNR = 10)Arguments
nxgrid
number of evaluation points of functional
covariates
nygrid
number of evaluation points of the
functional response
SNR
the signal-to-noise ratio for the generated
data: empirical variance of the additive predictor
divided by variance of the errors.
Value
- a named list with the simulated data, and the true
components of the predictor etc as attributes.
Details
See source code for details.