CluMP {CluMP} | R Documentation |

## Cluster Micro-Panel (longitudinal) Data employing the CluMP algorithm

### Description

This function clusters Micro-Panel (longitudinal) Data (or trajectories) to a pre-defined number of clusters by employing Feature-Based Clustering of Micro-Panel (longitudinal) Data algorithm called CluMP (see Reference). Currently, only univariate clustering analysis is available.

### Usage

```
CluMP(formula, group, data, cl_numb = NA, base_val = FALSE, method = "ward.D")
```

### Arguments

`formula` |
A two-sided |

`group` |
A grouping factor variable (vector), i.e. single identifier for each individual (trajectory). |

`data` |
A data frame containing the variables named in the |

`cl_numb` |
An integer, positive number (scalar) specifying the number of clusters. The |

`base_val` |
Indicates whether include a value at zero time point as an additional clustering variable. Default is |

`method` |
A method which use in hierarhical clustering, same as in |

### Value

Cluster Micro-Panel data. The output is the `list`

of 5 components which contain results from clustering.

### Source

Sobisek, L., Stachova, M., Fojtik, J. (2018) Novel Feature-Based Clustering of Micro-Panel Data (CluMP). Working paper version online: www.arxiv.org

### Examples

```
data <- GeneratePanel(n = 100, Param = ParamLinear, NbVisit = 10)
CluMP(formula = Y ~ Time, group = "ID", data = data, cl_numb = 3,
base_val = FALSE, method = "ward.D")
CluMP(formula = Y ~ Time, group = "ID", data = data, cl_numb = 3,
base_val = TRUE, method = "ward.D")
```

*CluMP*version 0.8.1 Index]