GetBDTable: Retrieve the MAP and distribution of the number of components

Description Usage Arguments Value Author(s) See Also Examples

View source: R/postgen_ops.R

Description

The function can be used to obtain the MAP estimate (mode of the posterior) along with the frequency table for the number of components, based on a BDMCMC fit from est_mix_bdmcmc.

For examples see

http://faculty.missouri.edu/~micheasa/sppmix/sppmix_all_examples.html#GetBDTable

Usage

1
GetBDTable(BDfit, showtable = TRUE)

Arguments

BDfit

A BDMCMC fit obtain from est_mix_bdmcmc.

showtable

Logical variable requesting to display the frequency table. Default is TRUE.

Value

A list containing the following:

MAPcomp

The MAP number of mixture components.

FreqTab

Frequency table for the number of components.

MeanComp

The posterior mean for the number of components.

Author(s)

Sakis Micheas

See Also

est_mix_bdmcmc

Examples

1
2
fit <- est_mix_bdmcmc(pp = spatstat::redwood, m = 7)
GetBDTable(fit)

sppmix documentation built on Jan. 13, 2021, 10:04 p.m.