precplot: replacement for rethinking::plot(precis(model)) which doesn't...

Description Usage Arguments Details Examples

Description

precplot(model,prob=0.95,...)

Usage

1
precplot(mapmodel, prob = 0.95)

Arguments

prob

probability level for interval. Default is 0.95

model

name of the map or map2stan model

...

additional arguments for plot

Details

plot doesn't seem to work consistently with precis objects in the rethinking package. This is a rough plot to achieve essentially the same.

Examples

1
2
3
4
5
6
7
X = data.frame(x = rnorm(100, mean=10, sd = 2))
M1 = map(alist(x~dnorm(mu,sigma),
               mu <- a,
               a ~ dnorm(0,10),
               sigma ~ dcauchy(0,2)),
               data=X)
precplot(M1, prob=0.9,...)

helophilus/ColsTools documentation built on May 30, 2019, 4:03 p.m.