est_mix: Estimate mixture models using MCMC.

Description Usage Arguments Examples

Description

This functions fits a mixture model to spatial point pattern data using DAMCMC or BDMCMC.

Usage

1
2
est_mix(pattern, m, method = c("DAMCMC"), truncate = TRUE, chains = 4,
  iter = 5000, burnin = iter/5, thin = 1, ...)

Arguments

pattern

Point pattern object of class ppp.

m

Either number of components to fit in data augmentation MCMC or maximum number of component in Birth Death MCMC.

method

Character specifying which method to use for fitting mixture. Currently only "DAMCMC" is supported.

truncate

logical, indicating whether truncation is used, where the component density are restricted within the domain of the point pattern.

chains

A positive integer specifying number of chains; defaults to 4.

iter

Number of iterations for each chain (including burnin), default to 5000.

burnin

Number of burn-in iterations, default to 1/5 of chain length.

thin

Positive integer for thinning parameter, default to 1.

...

Further parameters to be passed to specific methods.

Examples

1
2
3
4
5
fit <- est_mix_damcmc(redwood, m = 3)
fit

# see vignett "Work with 2D Normal Mixtures" for more details.
vignette("mcmc", package = "sppmix")

wangyuchen/sppmix documentation built on May 4, 2019, 12:58 a.m.