Learn R Programming

dirichletprocess (version 0.4.2)

Burn: Add burn-in to a dirichletprocess object

Description

Add burn-in to a dirichletprocess object

Usage

Burn(dpobj, niter)

Value

A dirichletprocess object where all chain objects have the first

niter iterations are removed.

Arguments

dpobj

A dirichletprocess object.

niter

Number of iterations to burn.

Examples

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

Run the code above in your browser using DataLab