plot.ecss: Plot ecss object

Description Usage Arguments Details Author(s) Examples

Description

Plot an ecss object created by ecss for diagnostics.

Usage

1
2
3
## S3 method for class 'ecss'
plot(x, n.target, 
    tol = 1e-06, tol2 = 0.001,  ...)

Arguments

x

An ecss object

n.target

The sample size of interest at which the ECSS is evaluated.

tol

not to be changed by user

tol2

only change if result is NA

...

arguments passed to plot.default

Details

Takes an ecss object and draws D (e.g. MSE if specified when calling ecss) for the prior of interest and baseline prior which can be useful to understand whether small changes could have changed estimation of the effective current sample size.

Author(s)

Manuel Wiesenfarth

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
  # standard deviation
    sigma=1
  # baseline
    rob=c(0,10)
    vague <-mixnorm(vague=c(1, rob), sigma=sigma)
  # prior with nominal prior ESS=50
    inf=c(0,1/sqrt(50))
    info <-mixnorm(informative=c(1, inf), sigma=sigma)

  m=.2 #data mean
  n=100 # sample size
  
  e=ecss(info,m=m,sigma=sigma,n=n,
       n.target=1:100,min.ecss = -100,prior.base = vague)
  plot(e,n.target=100)

wiesenfa/ESS documentation built on June 19, 2019, 4:19 p.m.