extract_cov: Extract group level covariances from the samples

View source: R/inspection.R

extract_covR Documentation

Extract group level covariances from the samples

Description

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

Usage

extract_cov(
  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 3D array with (M, M, N) where M is parameters and N is samples


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