Learn R Programming

PAWL (version 0.5)

ConvertResults: Convert Results

Description

Convert results from pawl and adaptiveMH. The result is a data set that is more convenient to use with "ggplot2" functions.

Usage

ConvertResults(results, verbose)

Arguments

results
Object of class "list": either the output of pawl or of adaptiveMH.
verbose
Object of class "logical": if TRUE (default) then prints some indication of progress in the console.

Value

The function returns an object of class "data.frame", with columns for the chain indices, the chain values, the iteration indices, and the associated log density values.

Details

Essentially it concatenates the parallel chains in a single column, and adds a column with the associated log density values. If more than 1000 parallel chains are used, the function can take some time to return its output.

See Also

adaptiveMH, pawl