Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

calculTrajFuzzyMean

~ Function: calculTrajFuzzyMean ~


Description

Given some longitudinal data and a group's membership, calculFuzzyMean computes the mean trajectories of each cluster.

Usage

calculTrajFuzzyMean(traj, fuzzyClust)

Arguments

traj

[matrix]: longitudinal data. Each line is an individual, each column is a time measurement.

fuzzyClust

[matrix(numeric)]: membership matrix of each individual.

Details

Given a matrix of individual membership, the function calculTrajFuzzyMean compute the mean trajectory of each clusters.

affectFuzzyIndiv used with calculTrajFuzzyMean simulates one fuzzy k-means step.

Value

A matrix with k line and t column containing k clusters centers. Each line is a center, each column is a time measurement.

Examples

#######################
### calculTrajFuzzyMean

### Some LongitudinalData
traj <- gald()["traj"]

### 4 clusters centers
center <- traj[runif(4,1,nrow(traj)),]

### Affectation of each individual
membership <- affectFuzzyIndiv(traj,center)

### Computation of the mean's trajectories
calculTrajFuzzyMean(traj,membership)

kml

K-Means for Longitudinal Data

v2.4.1
GPL (>= 2)
Authors
Christophe Genolini [cre, aut], Bruno Falissard [ctb]
Initial release
2016-02-02

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.