stanWplot: Runs stan, and plots sampling information while sampling.

Description Usage Arguments Examples

View source: R/stanWplot.R

Description

Runs stan, and plots sampling information while sampling.

Usage

1
stanWplot(object, iter = 2000, chains = 4, ...)

Arguments

object

stan model object

iter

Number of iterations

chains

Number of chains

...

All the other regular arguments to stan()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
#### example 1 
scode <- "
parameters {
  real y[2]; 
} 
model {
  y[1] ~ normal(0, .5);
  y[2] ~ double_exponential(0, 2);
} 
"
sm <- stan_model(model_code = scode)
fit1 <- stanWplot(object = sm,iter = 100000,chains=2,cores=1)

## End(Not run)

cdriveraus/ctsem documentation built on April 18, 2019, 9:51 a.m.