Learn R Programming

latrend (version 1.2.1)

trajectories: Extract the trajectories

Description

Transform or extract the trajectories from the given object to a standardized format.

The standardized data format is for method estimation by latrend, and for plotting functions.

Usage

trajectories(object, ...)

# S4 method for data.frame trajectories(object, id, time, response, ...)

# S4 method for matrix trajectories(object, id, time, response, ...)

# S4 method for call trajectories(object, ..., envir)

# S4 method for lcModel trajectories(object, ...)

Arguments

object

The data or model or extract the trajectories from.

...

Additional arguments.

id

The identifier variable name.

time

The time variable name.

response

The response variable name.

envir

The environment used to evaluate the data object in (e.g., in case object is of type call).

Value

A data.frame with columns matching the id, time, and response name arguments.

See Also

plotTrajectories latrend