filter_gibbs_samples: Filter Gibbs samples

View source: R/model_evaluation.R

filter_gibbs_samplesR Documentation

Filter Gibbs samples

Description

This is a helper function that filters Gibbs samples.

Usage

filter_gibbs_samples(
  x,
  P_f,
  P_r,
  J,
  C,
  cov_sym,
  ordered = FALSE,
  keep_par = c("s", "alpha", "b", "Omega", "Sigma", "d"),
  drop_par = NULL
)

Arguments

x

An object of class RprobitB_gibbs_samples.

P_f

The number of covariates connected to a fixed coefficient (can be 0).

P_r

The number of covariates connected to a random coefficient (can be 0).

J

The number (greater or equal 2) of choice alternatives.

cov_sym

Set to TRUE for labels of symmetric covariance elements.

ordered

A boolean, FALSE per default. If TRUE, the choice set alternatives is assumed to be ordered from worst to best.

keep_par

A vector of parameter names which are kept.

drop_par

A vector of parameter names which get dropped.

Value

An object of class RprobitB_gibbs_samples filtered by the labels of parameter_labels.


RprobitB documentation built on Nov. 10, 2022, 5:12 p.m.