extract_parameters: Extract parameters from the samples

View source: R/inspection.R

extract_parametersR Documentation

Extract parameters from the samples

Description

This function taks a pmwgs sampler object and extracts both the group level and the individual subject level samples for the specified parameter estimates. The resulting tibble will bein long format

Usage

extract_parameters(
  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

A filter that defines which stage to draw samples from.

Value

A tibble with the parameter samples and a subjectid column


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