summary.fvddp {FVDDPpkg}R Documentation

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 class 'fvddp'
summary(object, ..., rows = FALSE, K = TRUE)

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.

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.

Examples

#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)

[Package FVDDPpkg version 0.1.2 Index]