Learn R Programming

longitudinalData (version 2.4.7)

longDataTo3d: ~ Function: longDataTo3d ~

Description

Build a object LongData3d from an object LongData. The resulting object has a single variable-trajectory stored in a array.

Usage

longDataTo3d(xLongData)

Value

An object of class LongData3d.

Arguments

xLongData

[LongData]: structure containning a variable-trajectory.

Author

Christophe Genolini
1. UMR U1027, INSERM, Université Paul Sabatier / Toulouse III / France
2. CeRSME, EA 2931, UFR STAPS, Université de Paris Ouest-Nanterre-La Défense / Nanterre / France

Details

Build a object LongData3d from an object LongData. The resulting object has a single variable-trajectory stored in a array.

References

[1] C. Genolini and B. Falissard
"KmL: k-means for longitudinal data"
Computational Statistics, vol 25(2), pp 317-328, 2010

[2] C. Genolini and B. Falissard
"KmL: A package to cluster longitudinal data"
Computer Methods and Programs in Biomedicine, 104, pp e112-121, 2011

See Also

LongData

Examples

Run this code
### Creation of single variable-trajectory
mat <- matrix(c(1,NA,3,2,3,6,1,8,10,1,NA,1,2,NA,3,2,3,2),6,3)
(ldSingle <- longData(mat))

### Extension to joint trajectories
(ldHyp <- longDataTo3d(ldSingle))

Run the code above in your browser using DataLab