An artificial longitudinal dataset comprising 200 trajectories belonging to one of 3 classes. Each trajectory deviates in intercept and slope from its respective class trajectory.
latrendData
A data.frame
comprising longitudinal observations from 200 trajectories.
Each row represents the observed value of a trajectory at a specific moment in time.
integer
: The trajectory identifier.
numeric
: The measurement time, between 0 and 2.
numeric
: The observed value at the respective time Time
for trajectory Id
.
factor
: The reference class.
This dataset was generated using generateLongData.
data(latrendData)
if (require("ggplot2")) {
plotTrajectories(latrendData, id = "Id", time = "Time", response = "Y")
# plot according to the reference class
plotTrajectories(latrendData, id = "Id", time = "Time", response = "Y", cluster = "Class")
}