Burn: Add burn-in to a dirichletprocess object

View source: R/burn.R

BurnR Documentation

Add burn-in to a dirichletprocess object

Description

Add burn-in to a dirichletprocess object

Usage

Burn(dpobj, niter)

Arguments

dpobj

A dirichletprocess object.

niter

Number of iterations to burn.

Value

A dirichletprocess object where all chain objects have the first niter iterations are removed.

Examples

dp <- Fit(DirichletProcessGaussian(rnorm(10)), 100)
DiagnosticPlots(dp)
burned_dp <- Burn(dp, 50)
DiagnosticPlots(burned_dp)

dm13450/dirichletprocess documentation built on Sept. 1, 2023, 3:47 a.m.