Description Usage Arguments Value Examples
Calculates KL divergence between empirical pairwise preferences and modeled pairwise preferences
1 2 | Evaluation.KL(Data.pairs, m, Estimate, pairwise.prob = NA, prior = 0,
nonparametric = FALSE, ...)
|
Data.pairs |
data broken up into pairs using Breaking function |
m |
number of alternatives |
Estimate |
estimation object from an Estimate function |
pairwise.prob |
Function that given two alternatives from the the Parameters argument, returns back a model probability that one is larger than the other |
prior |
prior weight to put in pairwise frequency matrix |
nonparametric |
indicator that model is nonparametric (default FALSE) |
... |
additional arguments passed to generateC.model |
the KL divergence between modeled and empirical pairwise preferences, thinking of the probabilities as a probability distribution over the (n choose 2) pairs
1 2 3 4 5 | data(Data.Test)
Data.Test.pairs <- Breaking(Data.Test, "full")
m <- 5
Estimate <- Estimation.PL.GMM(Data.Test.pairs, m)
Evaluation.KL(Data.Test.pairs, m, Estimate, PL.Pairwise.Prob)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.