pcStan {pcFactorStan} | R 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 |
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.
Examples
dl <- prepData(phyActFlowPropensity[,c(1,2,3)])
dl$varCorrection <- 5.0
pcStan('unidim_adapt', data=dl) # takes more than 5 seconds
[Package pcFactorStan version 1.5.4 Index]