Learn R Programming

RMallow (version 1.1)

BestFit: Fit Mallows model N times and select most likely model. The EM algorithm to fit Multi-Modal Mallows' models is prone to getting stuck in local maxima, so we run it several times and selec the best one.

Description

Fit Mallows model N times and select most likely model. The EM algorithm to fit Multi-Modal Mallows' models is prone to getting stuck in local maxima, so we run it several times and selec the best one.

Usage

BestFit(datas, N, iter, G)

Arguments

N

number of times to run the model

iter

maximum number of iterations for each run

G

Number of cluster centers

datas

data set to fit

Value

best fitting model.