Learn R Programming

rbi (version 1.0.0)

get_traces: Get the parameter traces

Description

This function takes the provided libbi object which has been run and returns a data frame with the parameter traces.

Usage

get_traces(x, model, burnin, all = FALSE, ...)

Value

a ata frame with parameter traces; this can be fed to

coda routines

Arguments

x

a libbi object which has been run, or a list of data frames containing parameter traces (as returned by bi_read); if it is not a libbi object, either 'all' must be TRUE or a model given

model

a model to get the parameter names from; not needed if 'run' is given as a libbi object or 'all' is set to TRUE

burnin

proportion of iterations to discard as burn-in (if between 0 and 1), or number of samples to discard (if >1)

all

whether all variables in the run file should be considered (otherwise, just parameters)

...

parameters to bi_read (e.g., dimensions)