Extract the fitted trajectories for all strata
Extract the fitted trajectories for all strata
trajectories( object, at = time(object), what = "mu", clusters = trajectoryAssignments(object), ... ) ## S4 method for signature 'lcModel' trajectories( object, at = time(object), what = "mu", clusters = trajectoryAssignments(object), ... )
object |
The model. |
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. |
... |
Additional arguments. |
Other model-specific methods:
clusterTrajectories(),
coef.lcModel(),
converged(),
deviance.lcModel(),
df.residual.lcModel(),
fitted.lcModel(),
lcModel-class,
logLik.lcModel(),
model.frame.lcModel(),
nobs.lcModel(),
postprob(),
predict.lcModel(),
predictAssignments(),
predictForCluster(),
predictPostprob(),
residuals.lcModel(),
sigma.lcModel(),
time.lcModel()
data(latrendData)
model <- latrend(method = lcMethodKML("Y", id = "Id", time = "Time"), data = latrendData)
trajectories(model)
trajectories(model, at = c(0, .5, 1))Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.