View source: R/sampleRepeated.R
sampleRepeated | R Documentation |
Simulate repeated measurements over time (one factor model).
sampleRepeated(n, n.Xcont = 2, n.Xcat = 2, n.rep = 5, format = "long")
n |
[integer] sample size. |
n.Xcont |
[integer] number of continuous covariates acting on the latent variable. |
n.Xcat |
[integer] number of categorical covariates acting on the latent variable. |
n.rep |
[integer] number of measurement of the response variable. |
format |
[character] should the dataset be returned in the |
a data.frame
object.
sampleRepeated(10, format = "wide")
sampleRepeated(10, format = "long")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.