Filter Gibbs samples
This is a helper function that filters Gibbs samples.
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 )
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.An object of class RprobitB_gibbs_samples
filtered by the labels of parameter_labels
.
Useful links