extract_tmu: Extract group level parameters from the samples

View source: R/inspection.R

extract_tmuR Documentation

Extract group level parameters from the samples

Description

This function taks a pmwgs sampler object and extracts the group level samples for the specified parameter estimates.

Usage

extract_tmu(
  sampler,
  par_names = sampler$par_names,
  filter = unique(sampler$samples$stage)
)

Arguments

sampler

The pmwgs sampler object

par_names

The names of the parameters to extract - defaults to all parameters estimated.

filter

The sampling stages to extract - defaults to all stages run. Can also be a vector of sample indices.

Value

A tibble with the parameter samples and a sampleid column


gjcooper/gcphd-model_of_dce documentation built on March 25, 2024, 8:57 a.m.