reshape.theta: Convert theta array to dataframe

Description Usage Arguments Value Examples

Description

Reshapes the subject-level parameters in Powder.Individual or Powder.Hierarchical objects to a dataframe for easier analysis.

Usage

1
reshape.theta(pow.out, pars = NULL, with.burnin = FALSE, ...)

Arguments

pow.out

Powder.Individual or Powder.Hierarchical object

pars

subset of parameters to reshape. Defaults to all parameters.

with.burnin

if false, burnin is discarded

...

additional arguments

subject

subset of subjects to reshape. Defaults to all subjects.

Value

A dataframe with columns corresponding to parameter, iteration, chain, value, and subject if Powder.Hierarchical object.

Examples

1
2
3
4
5
6
7
8
## Not run: 
data('null')
lba = LBA$new()
#low number of samples for illustration purposes
out = powder(model=lba,data=null,burnin=10,n.samples=10,method='posterior')
phi_df = reshape.phi(out)

## End(Not run)

jeff324/powder documentation built on June 4, 2019, 3:04 a.m.