R: Formats the data in the "Solve" function for output.

FormatOut {RMallow} | R Documentation

## Formats the data in the "Solve" function for output.

### Description

Data formatting function.

### Usage

      FormatOut(R, p, lambda, z, datas, likelihood)

### Arguments

`R` | The modal sequences.
`p` | Proportion of data in each cluster.
`lambda` | Mallows' spread parameters for each cluster.
`z` | Probability of cluster membership for each individual.
`datas` | Matrix of partial sequences.
`likelihood` | Vector of the log-likelihood of the model at each iteration.

### Value

`R` | The modal sequences
`p` | Proportion in each cluster
`lambda` | Spread parameters for each cluster
`datas` | Rankings merged with their cluster membership, distance from each cluster center, and probability of each cluster membership
`min.like` | Likelihood at each iteration

### Author(s)

Erik Gregory

[Package RMallow version 1.0 Index]