View source: R/misc-functions.R
data.coor | R Documentation |
Generate sparse irregular longitudinal samples.
data.coor(n, mu.c = 10, nb.n = 10, nb.p = 0.25)
n |
the number of samples |
mu.c |
the mean |
nb.n |
the maximum number of observations per curve |
nb.p |
the probability of success when computing the number of observations per curve |
mu.f |
the mean function |
phi |
a list of length 2 containing two "eigenfunctions" |
Generate sparse irregular longitudinal samples. The number of observations
per curve is rbinom(nb.n, nb.p)
. It uses a Karhunen-Loeve
representations uing the mean function mu.f
and (2)
eigenfunctions (in phi
). The scores are rnorm(0, 25)
and rnorm(0, 1)
.
A list with two components:
x |
A list with the |
pp |
A corresponding list with the vectors of times at which observations were taken |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.