Learn R Programming

FVDDPpkg (version 0.1.2)

print.fvddp: Print hyperparameters and values from Fleming-Viot Dependent Dirichlet Processes

Description

Print hyperparameters and values from Fleming-Viot Dependent Dirichlet Processes

Usage

# S3 method for fvddp
print(x, ...)

Value

A list of the hyperparameters of the process, i.e. theta, P0.sample, Po.density, and is.atomic. Moreover, if the process is still empty, this will be printed; if otherwise it has been updated (via update()), then the values in y.star, M and w will be printed.

Arguments

x

The fvddp object to be printed.

...

Optional arguments for summary methods.

Examples

Run this code
#a simple example
FVDDP = initialize(theta = 1, sampling.f = function(x) rpois(x, 3),
                   density.f = function(x) dpois(x, 3), atomic = TRUE)
FVDDP = update(FVDDP, c(4,5))
print(FVDDP)

#in case there are no data
FVDDP=initialize(theta = 3, function(x) rnorm(x, -1, 3),
                 function(x) dnorm(x, -1, 3), atomic = FALSE)
print(FVDDP)

Run the code above in your browser using DataLab