sum_samples: Summarize the mcmc sample that lives in a dataframe, return...

Description Usage Arguments Value Examples

Description

Summarize the mcmc sample that lives in a dataframe, return the summary of each column as a row of present table.

Usage

1
sum_samples(sample_df)

Arguments

sample_df:

the dataframe whose columns are the mcmc chains of parameters.

Value

a dataframe that summarizes the posterior samples

Examples

1
2
3
4
x = rnorm(1000)
y = rnorm(1000, 10, 1)
output=cbind(x=x, y=y)
sum_samples(output)

jesscyzhao/cyrutil documentation built on May 17, 2019, 2:15 a.m.