# NOT RUN {
data(latrendData)
method <- lcMethodKML("Y", id = "Id", time = "Time", nClusters = 3)
model <- latrend(method, latrendData)
predictForCluster(model,
newdata = data.frame(Time = c(0, 1)),
cluster = "B")
# all fitted values under cluster B
predictForCluster(model, cluster = "B")
# }
Run the code above in your browser using DataLab