Description Usage Arguments Details Author(s) Examples
Plot an ecss object created by ecss for diagnostics.
1 2 3 |
x |
An |
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 |
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.
Manuel Wiesenfarth
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.