extract_sample: Extract a sample from a 'LibBi' run.

View source: R/extract_sample.R

extract_sampleR Documentation

Extract a sample from a LibBi run.

Description

This function takes the provided libbi results and extracts a data frame.

Usage

extract_sample(x, np, ...)

Arguments

x

a libbi object which has been run, or a list of data frames containing parameter traces (as returned by from bi_read)

np

iteration to extract; if set to "last", the last sample will be extracted. If not given a random sample will be extracted

...

parameters to bi_read (e.g., dimensions)

Value

a list of data frames or numeric vectors containing parameters and trajectories


libbi/RBi documentation built on June 3, 2024, 12:22 p.m.