Learn R Programming

FVDDPpkg (version 0.1.2)

summary.fvddp: Show the data contained within the Fleming-Viot Dependent Dirichlet Process

Description

Show the data contained within the Fleming-Viot Dependent Dirichlet Process

Usage

# S3 method for fvddp
summary(object, ..., rows = FALSE, K = TRUE)

Value

The function prints a base::data.frame() object (that is, of class "data.frame") where every row is a vector of multiplicities (according to the observations as in the names of the columns), with its associated weight.

Arguments

object

An element of class fvddp, created via initialize().

...

Optional arguments for summary methods.

rows

Specify whether the rows must be printed. Useful in case M is large.

K

Specify whether the values of K, the amount of clusters for each row, must be printed.

Examples

Run this code
#iniialize a simple process and show its summary
FVDDP = initialize(2, function(x) rgeom(x, .25),
                   function(x) dgeom(x, .25), TRUE)
FVDDP = update(FVDDP, rpois(4, 2))
FVDDP = propagate(FVDDP, 0.5)
summary(FVDDP)

Run the code above in your browser using DataLab