probranks: Ranks samples from posterior distribution of Bayes linear...

View source: R/probranks.R

probranksR Documentation

Ranks samples from posterior distribution of Bayes linear models for paired comparison data

Description

Ranks samples from posterior distribution of Bayes linear models for paired comparison data

Usage

probranks(samples, ascending = T)

Arguments

samples

The posterior draws obtained from cpcbayeslm and postdrawspcd

ascending

A logical variable default to True for ascending order of the item labels.

Value

Ranks permutations and ranking probabilities

Author(s)

Prince P. Osei and Ori Davidov

Examples

##  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
## hh <- postdrawspcd(N,K,compars,Tscores,Edges=edges) # posterior draws
## probranks(hh$drawspost)

oseipep/pcdbayeslm documentation built on Aug. 6, 2023, 8:45 a.m.