parDistributionCustom: Produce data suitable for plotting parameter distributions

View source: R/fit.R

parDistributionCustomR Documentation

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)

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

Value

A data.frame with the following columns:

sample

Sample index

label

A name from nameVec

value

A single sample of the associated parameter

See Also

Other data extractor: parInterval(), responseCurve()

Examples

 vignette('manual', 'pcFactorStan') 

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