Learn R Programming

latrend (version 1.2.1)

latrendData: Artificial longitudinal dataset comprising three classes

Description

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.

Usage

latrendData

Arguments

Format

A data.frame comprising longitudinal observations from 200 trajectories. Each row represents the observed value of a trajectory at a specific moment in time.

Id

integer: The trajectory identifier.

Time

numeric: The measurement time, between 0 and 2.

Y

numeric: The observed value at the respective time Time for trajectory Id.

Class

factor: The reference class.

See Also

generateLongData

Examples

Run this code
# NOT RUN {
data(latrendData)
plotTrajectories(latrendData, id = "Id", time = "Time", response = "Y")

# plot according to the reference class
plotTrajectories(latrendData, id = "Id", time = "Time", response = "Y", cluster = "Class")
# }

Run the code above in your browser using DataLab