postdrawspcd | R Documentation |
This function performs a new posterior ranking methodology developed in the paper by Prince P. Osei and Ori David (2021) to account for the uncertainty in the ranking of items.
postdrawspcd(
N,
noitems,
nocompars,
scores,
vars = 1,
xmu = zeros(noitems, 1),
xvar = vars * diag(noitems),
a0 = 2,
b0 = 1,
Edges = c(1, 2, 1, 3, 2, 3),
data = NULL,
datatype = "simulated",
prior = "conju"
)
N |
Number of posterior samples. |
noitems |
Number of items in the comparison graph |
nocompars |
The number of comparisons among |
scores |
The true scores or merits of |
vars |
The constant variance of |
xmu |
The normal prior mean of |
xvar |
The prior covariance matrix of |
a0 |
The prior shape of inverse gamma distribution default is 2 |
b0 |
The prior scale of inverse gamma distribution default is 1 |
Edges |
The edge set of |
data |
The data containing the comparison outcomes; defalut is NULL. |
datatype |
The type of data to analyze: "simulated" (the default) for simulated data, "real" for a given real dataset. |
prior |
The type of prior: "conju" (default) for conjugate prior, "semi-conju" for semi-conjugate prior, "flat" for flat prior, and "ref" for reference prior |
A posterior rankings of posterior draws from cpcbayeslm
Prince P. Osei and Ori Davidov
## A graph of three items
## K <- 3 # number of items
## edges <- c(1,2,1,3,2,3) # edge set
## compars <- rep(3,3) # pairwise comparisons
## Tscores <- 1:3-mean(1:3) # The true score sum to zero
## N <- 100 # number of samples to draw
## postdrawspcd(N,K,compars,Tscores,Edges=edges)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.