Learn R Programming

dirichletprocess (version 0.4.2)

print.dirichletprocess: Print the Dirichlet process object

Description

Print a Dirichlet process object. This will print some basic information about the dirichletprocess object.

Usage

# S3 method for dirichletprocess
print(x, param_summary = FALSE, digits = 2, ...)

Arguments

x

Dirichlet Process Object to print.

param_summary

If TRUE, print the overall averages of each parameter of the model. Note that this averages over all clusters and over all iterations, so it will only give a loose sense of the resulting DPM model.

digits

Integer; Number of digits to display.

...

Further arguments passed to or from other methods.

Examples

Run this code
dp <- Fit(DirichletProcessGaussian(rnorm(10)), 100)
dp

Run the code above in your browser using DataLab