effectiveSize: Calculate effective sample sizes

Description Usage Arguments Examples

View source: R/analysis.R

Description

effectiveSize calls effectiveSize in coda package to calculate sample sizes.

Usage

1
2
3
4
5
6
7
8
effectiveSize_hyper(x, start, end, digits, verbose)

effectiveSize_many(x, start, end, verbose)

effectiveSize_one(x, start, end, digits, verbose)

effectiveSize(x, hyper = FALSE, start = 1, end = NA, digits = 0,
  verbose = FALSE)

Arguments

x

posterior samples

start

starting iteration

end

ending iteraton

digits

printing how many digits

verbose

printing more information

hyper

a Boolean switch to extract hyper attribute

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#################################40
## effectiveSize example
#################################40
## Not run: 
es1 <- effectiveSize_one(hsam[[1]], 1, 100, 2, TRUE)
es2 <- effectiveSize_one(hsam[[1]], 1, 100, 2, FALSE)
es3 <- effectiveSize_many(hsam, 1, 100, TRUE)
es4 <- effectiveSize_many(hsam, 1, 100, FALSE)
es5 <- effectiveSize_hyper(hsam, 1, 100, 2, TRUE)
es6 <- effectiveSize(hsam, TRUE, 1, 100, 2, TRUE)
es7 <- effectiveSize(hsam, TRUE, 1, 100, 2, FALSE)
es8 <- effectiveSize(hsam, FALSE, 1, 100, 2, TRUE)
es9 <- effectiveSize(hsam, FALSE, 1, 100, 2, FALSE)
es10 <- effectiveSize(hsam[[1]], FALSE, 1, 100, 2, TRUE)

## End(Not run)

ggdmc documentation built on May 2, 2019, 9:59 a.m.