filter_gibbs_samples: Filter Gibbs samples.

Description Usage Arguments Value

View source: R/filter_gibbs_samples.R

Description

This function filters Gibbs samples.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
filter_gibbs_samples(
  x,
  P_f,
  P_r,
  J,
  C,
  cov_sym,
  keep_par = c("s", "alpha", "b", "Omega", "Sigma"),
  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.

C

The number of latent classes.

cov_sym

If TRUE considers symmetric covariance matrix elements.

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 create_parameter_labels(P_f, P_r, J, C, cov_sym, keep_par, drop_par).


RprobitB documentation built on Nov. 12, 2021, 5:08 p.m.