pcStan: Fit a paired comparison Stan model

View source: R/fit.R

pcStanR Documentation

Fit a paired 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.

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, outlierTable

Examples

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

pcFactorStan documentation built on Sept. 14, 2023, 1:09 a.m.