Description Usage Arguments Examples
View source: R/simulate_simple_dfrr.R
Simulation from a simple dfrr model:
Y_{i}(t)=I(β_0(t)+β_1(t)*x_{i}+\varepsilon_{i}(t)+ε_{i}(t)\timesσ^2>0),
where I(.) is the indicator function, \varepsilon_{i} is a Gaussian random function, and ε_{i}(t) are iid standard normal for each i and t independent of \varepsilon_{i}. For demonstration purpose only.
1 2 3 4 5 6 7 |
beta0, beta1 |
(optional) functional intercept and slope parameters |
X |
an (optional) vector consists of scalar covariate |
time |
an (optional) vector of time points for which, each sample curve is observed at. |
sigma2 |
variance of the measurement error in the |
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.