Description Usage Arguments Details Value Author References See Also Examples
partition
is the constructor of the class
Partition
. It can be build either alone or
relatively to a object LongData
.
1 |
clusters |
|
traj |
|
details |
|
partition
construct a object of class
Partition
. It does not provide any default
values. yLongData
and details
are optional.
An object of class Partition
.
Christophe Genolini
1. UMR U1027, INSERM, Universit<e9> Paul Sabatier / Toulouse III / France
2. CeRSM, EA 2931, UFR STAPS, Universit<e9> de Paris Ouest-Nanterre-La D<e9>fense / Nanterre / France
[1] Christophe M. Genolini and Bruno Falissard
"KmL: k-means for longitudinal data"
Computational Statistics, vol 25(2), pp 317-328, 2010
[2] Christophe M. Genolini and Bruno Falissard
"KmL: A package to cluster longitudinal data"
Computer Methods and Programs in Biomedicine, 104, pp e112-121, 2011
Partition,ordered
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ### Empty partition
partition()
### Small partition
partition(clusters=c("A","B","A","C","C"))
### Random partition
partition(clusters=LETTERS[floor(runif(100,1,5))])
### Partition that clusters correctly some data
### Quality criterion are high
data(artificialLongData)
traj <- as.matrix(artificialLongData[,-1])
partition(clusters=rep(1:4,each=50),traj)
### Partition that does not cluster correctly the data
### Quality criterion are low
partition(clusters=rep(1:4,50),traj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.