pcFactorStan1.5.4 package

Stan Models for the Paired Comparison Factor Model

calibrateItems

Determine the optimal scale constant for a set of items

cmp_probs

Item response function for pairwise comparisons

filterGraph

Filter graph to remove vertices that are not well connected

findModel

Given a model name, return stanmodel object

generateCovItems

Generate paired comparison data with random correlations between items

generateFactorItems

Generate paired comparison data for a factor model

generateItem

Generate paired comparison data for one or more items given absolute l...

generateSingleFactorItems

Generate paired comparison data with a common factor that accounts for...

itemModelExplorer

A Shiny app to experiment with the item response model

normalizeData

Normalize data according to a canonical order

outlierTable

List observations with Pareto values larger than a given threshold

parDistributionCustom

Produce data suitable for plotting parameter distributions

parInterval

Produce data suitable for plotting parameter estimates

pcFactorStan-package

Stan Models for the Pairwise Comparison Factor Model

pcStan

Fit a paired comparison Stan model

phyActFlowPropensity

Physical activity flow propensity

prepCleanData

Transforms data into a form tailored for efficient evaluation by Stan

prepData

Transforms data into a form tailored for efficient evaluation by Stan

prepFactorModel

Specify a factor model

prepSingleFactorModel

Specify a single factor model

responseCurve

Produce data suitable for plotting item response curves

roundRobinGraph

Create an edge list with round-robin connectivity

toLoo

Compute approximate leave-one-out (LOO) cross-validation for Bayesian ...

twoLevelGraph

Create an edge list with a random two level connectivity

unfactor

Turn a factor back into a vector of integers

withoutIndex

Remove the array indexing from a parameter name

Provides convenience functions and pre-programmed Stan models related to the paired comparison factor model. Its purpose is to make fitting paired comparison data using Stan easy. This package is described in Pritikin (2020) <doi:10.1016/j.heliyon.2020.e04821>.

  • Maintainer: Joshua N. Pritikin
  • License: GPL (>= 3)
  • Last published: 2023-09-13