Description Usage Arguments Value Examples
View source: R/itlt_simulation.R
Simulation for longitudinal datasets
1 2 | ItltSimulation1(N, tf, e = 0.2, p = 0.2, asigma = 0.5,
seed = "1234", type = 1)
|
N |
sample size |
tf |
time frame |
e |
error standard deviation |
p |
missing value probability |
asigma |
sd of subject specific random effect |
seed |
seed for random number |
type |
simulation setting (1: non-linearity, 2: periodicity, 3: non-linearity, 4: no heteorogeneity in treatment effect) |
a simulated longitudinal dataset
1 | sample <- ItltSimulation1(250, 1:12)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.