extend_us: Extend auxiliary variables to include additional empty...

Description Usage Arguments Value

View source: R/extend_us.R

Description

Given a list of auxiliary variables Us, such as generated by gibbs_sampler, add empty categories, i.e. zero counts.

Usage

1
extend_us(Us, whichbefore, whichnew)

Arguments

Us

a list of auxiliary variables.

whichbefore

a vector of indices indicating location of previous categories

whichnew

a vector of indices indicating location of new (empty) categories

Value

A list with the following entries: #'


pierrejacob/montecarlodsm documentation built on June 16, 2021, 1:06 p.m.