Description Usage Arguments Value Examples
The usual top level function for clustering longitudinal trajectories. After
initial setup, it calls trajectories
to perform k-means
clustering on continuous response
measured over time
, where each mean
is defined by a thin plate spline fit to all points in a cluster. See
clustra_vignette.Rmd
for examples of use.
1 2 3 4 5 6 7 8 9 10 |
data |
Data frame or, preferably, also a data.table with response measurements, one response per observation. Required variables are (id, time, response). Other variables are ignored. |
k |
Number of clusters |
starts |
A vector of length two. See |
group |
A vector of initial cluster assignments for unique id's in data.
Normally, this is NULL and good starts are provided by
|
maxdf |
Fitting parameters. See |
conv |
Fitting parameters. See |
mccores |
See |
verbose |
Logical to turn on more output during fit iterations. |
A list returned by trajectories
plus one more element ido
,
giving the original id numbers.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.