powered by
Plot trajectories
Plot fitted trajectories of a lcModel
# S4 method for data.frame plotTrajectories( object, response, time = getOption("latrend.time"), id = getOption("latrend.id"), cluster = NULL, facet = TRUE, ... )# S4 method for lcModel plotTrajectories(object, ...)
# S4 method for lcModel plotTrajectories(object, ...)
The model.
Response variable character name or a call.
character
call
The name of the time variable.
The name of the trajectory identifier variable.
Cluster variable name. If unspecified, trajectories are not grouped. Alternatively, cluster is a vector indicating cluster membership per id.
Whether to facet by cluster.
Arguments passed on to trajectories
trajectories
at
The time points at which to compute the id-specific trajectories.
what
The distributional parameter to compute the response for.
clusters
The cluster assignments for the strata to base the trajectories on.
# NOT RUN { data(latrendData) plotTrajectories(latrendData, response = "Y", id = "Id", time = "Time") plotTrajectories(latrendData, response = quote(exp(Y)), id = "Id", time = "Time") # }
Run the code above in your browser using DataLab