summary.damcmc_res: Summarize DAMCMC results

Description Usage Arguments Author(s) See Also Examples

View source: R/summary_post.R

Description

Prints a brief summary of the results of a DAMCMC fit.

For examples see

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

Usage

1
2
3
## S3 method for class 'damcmc_res'
summary(object, burnin = object$L/10, alpha = 0.05,
  dgt = 4, ...)

Arguments

object

Object of class damcmc_res.

burnin

Number of initial realizations to discard. By default, it is 1/10 of the total number of iterations.

alpha

Level alpha for the credible sets. Default is 0.05, for 95 sets of the mixture parameters.

dgt

Number of digits to use (formatting the output).

...

Additional arguments for the S3 method.

Author(s)

Jiaxun Chen, Sakis Micheas, Yuchen Wang

See Also

rnormmix, to_int_surf, rsppmix, est_mix_damcmc, owin

Examples

1
2
3
4
5
6
7
8
9
# generate data
truemix<- rnormmix(m = 3, sig0 = .1, df = 5, xlim= c(0, 5), ylim = c(0, 5))
summary(truemix)
intsurf=to_int_surf(truemix, lambda = 100, win =spatstat::owin( c(0, 5),c(0, 5)))
pp1 = rsppmix(intsurf = intsurf)# draw points
#Run DAMCMC and get posterior realizations
postfit=est_mix_damcmc(pp1,m=3)
#summary of the posterior results
summary(postfit)

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