tidy_posterior: Convert a vector of posterior sample to a dataframe

Description Usage Arguments Value Methods (by class)

View source: R/tidy_stan.R

Description

Convert a vector of posterior sample to a dataframe

Usage

1
2
3
4
5
6
7
tidy_posterior(x)

## S3 method for class 'numeric'
tidy_posterior(x)

## S3 method for class 'matrix'
tidy_posterior(x)

Arguments

x

a vector or matrix of posterior samples for some parameter

Value

A tibble where each row is one sample of one parameter, with a column for which draw the sample came from ('draw') and a column for which index of the parameter the draw is for ('i'). (For this case, the function is always )

Methods (by class)


wjones127/tidystan documentation built on May 28, 2017, 4:36 a.m.