pcFactorStan (version 1.5.4)

pcStan: Fit a paired comparison Stan model

Description

Uses findModel to find the appropriate model and then invokes sampling.

Usage

pcStan(model, data, ...)

Value

A stanfit object.

An object of S4 class stanfit.

Arguments

model

the name of a model

data

a data list prepared for processing by Stan

...

Additional options passed to stan.

See Also

See sampling, for which this function is a wrapper, for additional options. See prepData to create a suitable data list. See print.stanfit for ways of getting tables summarizing parameter posteriors.

calibrateItems, outlierTable

Examples

Run this code
dl <- prepData(phyActFlowPropensity[,c(1,2,3)])
dl$varCorrection <- 5.0
pcStan('unidim_adapt', data=dl)  # takes more than 5 seconds

Run the code above in your browser using DataLab