parDistributionCustom: Produce data suitable for plotting parameter distributions
Description
Produce data suitable for plotting parameter distributions
Usage
parDistributionCustom(
fit,
pars,
nameVec,
label = withoutIndex(pars[1]),
samples = 500
)parDistributionFor(fit, pi, samples = 500)
Value
A data.frame with the following columns:
- sample
Sample index
- label
A name from nameVec
- value
A single sample of the associated parameter
Arguments
- fit
a stanfit
object
- pars
a vector of parameter names
- nameVec
a vector of explanatory parameters names
- label
column name for nameVec
- samples
number of posterior samples
- pi
a data.frame returned by parInterval
See Also
Other data extractor:
parInterval()
,
responseCurve()
Examples
Run this code vignette('manual', 'pcFactorStan')
Run the code above in your browser using DataLab