pcFactorStan (version 0.11)

pcStan: Fit a pairwise comparison Stan model

Description

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

Usage

pcStan(model, data, ...)

Arguments

model

the name of a model

data

a data list prepared for processing by Stan

...

Additional options passed to stan. The usual choices are iter for the number of iterations and chains for the number of chains.

Value

A stanfit object.

An object of S4 class stanfit.

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

Examples

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

Run the code above in your browser using DataLab