R/GreedyLocal.R
GreedyLocal.RdThis function estimates the MLE of a Mallows-Binomial distribution using the GreedyLocal method, which is identical to the Greedy method but includes an automatic and targeted post-hoc local search.
GreedyLocal(rankings, ratings, M)A list with elements pi0, the estimated consensus ranking MLE, p, the
estimated object quality parameter MLE, theta, the estimated scale parameter MLE, and
numnodes, number of nodes traversed during algorithm and a measure of computational complexity.
If multiple MLEs are found, pi0, p, and theta are returned a matrix elements, with
one row per MLE.
data("ToyData1")
GreedyLocal(ToyData1$rankings,ToyData1$ratings,ToyData1$M)
#> $pi0
#> [1] 1 2 3
#>
#> $p
#> [1] 0.125 0.125 0.750
#>
#> $theta
#> [1] 1e+08
#>
#> $num_nodes
#> [1] 9
#>