powered by
Simulate repeated measurements over time (one factor model).
sampleRepeated(n, n.Xcont = 2, n.Xcat = 2, n.rep = 5, format = "long")
a data.frame object.
data.frame
[integer] sample size.
[integer] number of continuous covariates acting on the latent variable.
[integer] number of categorical covariates acting on the latent variable.
[integer] number of measurement of the response variable.
[character] should the dataset be returned in the "long" format or in the "wide" format.
"long"
"wide"
sampleRepeated(10, format = "wide") sampleRepeated(10, format = "long")
Run the code above in your browser using DataLab